提交记录 4629


用户 题目 状态 得分 用时 内存 语言 代码长度
Hzyuer 1000i. 【传统题】 A+B Problem Accepted 100 16.63 us 12 KB C++ 532 B
提交时间 评测时间
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;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #116.63 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-26 07:55:23 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用