提交记录 12663


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

CompilationN/AN/ACompile OKScore: N/A

Testcase #110.62 us20 KBAcceptedScore: 100


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