提交记录 15648


用户 题目 状态 得分 用时 内存 语言 代码长度
TOE 1000i. 【传统题】 A+B Problem Wrong Answer 0 13.08 us 20 KB C++ 743 B
提交时间 评测时间
2021-01-17 19:35:59 2021-01-17 19:36:00
#include<cstdio>
char BuF[4096],WuF[1<<26];
int main(){
    fread(BuF,1,4096,stdin);
    register char *InF=BuF;
    register 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)mutable{
		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);
	return(0);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #113.08 us20 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-20 12:17:02 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠