提交记录 2855


用户 题目 状态 得分 用时 内存 语言 代码长度
Xeonacid 1000i. 【传统题】 A+B Problem Wrong Answer 0 31.98 us 28 KB C++11 650 B
提交时间 评测时间
2018-06-30 11:28:41 2020-07-31 21:07:43
#pragma GCC optimize("Ofast")
#include<cstdio>
#include<vector>
    template<class T>T rd(){
		register T x=0;
		bool f=0;
		char c=getchar();
		while(c<45)c=getchar();
		if(c=='-')f=1,c=getchar();
		for(;c>47;c=getchar())x=x*10+(c&15);
		return f?-x:x;
	}
    template<class T>void print(register T x){
    	static char st[16],tp;
        if(!x){putchar('0');return;}
        if(x<0)putchar('-'),x=-x;
        for(tp=0;x;st[tp++]=x%10+48,x/=10);
        for(tp--;~tp;putchar(st[tp--]));
	}
std::vector<int>v;
main(){
	int n=100;
	while(n--){
		v.emplace_back(rd<int>()),v.emplace_back(rd<int>());
		print(v.end()[-1]+v.end()[-2]);putchar('\n');
	}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #131.98 us28 KBWrong AnswerScore: 0


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