提交记录 15649
提交时间 |
评测时间 |
2021-01-17 19:40:41 |
2021-01-17 19:40:42 |
#include<cstdio>
char BuF[4096],WuF[4096];
int main(){
fread(BuF,1,4096,stdin);
register char *InF=BuF;
int OnF=0;
auto read=[=]()mutable{
register int x=0;
register bool f=1;
for(;*InF<46;f^=*InF++=='-');
for(;32<*InF;x=(x<<3)+(x<<1)+(*InF++^48));
x=f?x:-x;
return(x);
};
auto write=[&](register int x){
int st[1010];
if(x<0){
WuF[OnF++]='-';
x=-x;
}
for(st[0]=0;x;x/=10){
st[++st[0]]=x%10+48;
}
for(;st[0];WuF[OnF++]=st[st[0]--]);
WuF[OnF++]='\n';
};
for(register int n=read(),a,b;n--;write(a+b)){
a=read();b=read();
}
fwrite(WuF,1,OnF,stdout);
fclose(stdout);
return(0);
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 14.44 us | 28 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 23:29:42 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠