提交记录 12660


用户 题目 状态 得分 用时 内存 语言 代码长度
ChrisT 1000i. 【传统题】 A+B Problem Accepted 100 22.95 us 12 KB C++ 452 B
提交时间 评测时间
2020-04-27 08:44:43 2020-08-01 02:57:17
#include <stdio.h>
char _,_b[33],_p; bool neg;
#define scan(x) do{neg=0;if((x=getchar())=='-')neg=1,x=getchar();for(x-='0';'0'<=(_=getchar()); x=(x<<1)+(x<<3)+_-'0');if(neg)x=-x;}while(0);
#define print(x) do{_p=0;if(x<0)putchar('-'),x=-x;if(!x)putchar('0');while(x)_b[++_p]=x%10+'0',x/=10;while(_p)putchar(_b[_p--]);}while(0);
int main() {
	int n,a,b,c;
	scan(n);
	while (n--) {
		scan(a); scan(b);
		c=a+b;
		print(c); putchar('\n');
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #122.95 us12 KBAcceptedScore: 100


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