提交记录 15649


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

CompilationN/AN/ACompile OKScore: N/A

Testcase #114.44 us28 KBAcceptedScore: 100


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