提交记录 12663
提交时间 |
评测时间 |
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;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 10.62 us | 20 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 23:16:27 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠