提交记录 4628


用户 题目 状态 得分 用时 内存 语言 代码长度
Hzyuer 1000i. 【传统题】 A+B Problem Wrong Answer 0 10.17 us 16 KB C++ 546 B
提交时间 评测时间
2018-07-26 19:25:32 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;
char ssr[2005],*S=ssr;
char stk[20];
int main() {
    n=read();
    for(register int i=1,x,tp;i<=2;++i) {
        x=read()+read(); tp=0;
        if(x<0) *S++='-',x=-x;
        else if(x==0) *S++='0';
        while(x) stk[++tp]=x%10+'0',x/=10;
        while(tp) *S++=stk[tp--];
        *S++='\n'; 
    }
    printf("%s",ssr);
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #110.17 us16 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-13 06:42:26 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠