提交记录 4629
提交时间 |
评测时间 |
2018-07-26 19:27:44 |
2020-07-31 23:09:05 |
#include<cstdio>
inline int read() {
static char c; int rec=0,f=0;
while((c=getchar())<'0'||c>'9') f|=c=='-';
while(c>='0'&&c<='9') rec=rec*10+c-'0',c=getchar();
return f?-rec:rec;
}
int n;
int main() {
n=read();
char ssr[2005],*S=ssr;
char stk[20];
for(register int i=1,x,tp;i<=100;++i) {
x=read()+read(); tp=0;
if(x<0) *S++='-',x=-x;
stk[++tp]='\n';if(!x)stk[++tp]='0';
while(x)stk[++tp]=x%10+'0',x/=10;
while(tp)*S++=stk[tp--];
}
printf("%s",ssr);
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 16.63 us | 12 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 23:33:31 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠