提交记录 6421
| 提交时间 |
评测时间 |
| 2018-10-09 19:31:41 |
2020-08-01 00:43:34 |
#pragma GCC optimize("Ofast,unroll-loops,no-stack-protector")
#include <stdio.h>
#include <ctype.h>
char inbuf[2110],outbuf[2110],*inpos = inbuf,*outpos = outbuf,tbuf[20];
inline int get()
{
register int res = 0, k = 1;
while (!isdigit(*inpos))
if (*inpos++ == '-')k = 0;
do res = (res << 3) + (res << 1), res += (*inpos++) & 15;while (isdigit(*inpos));
return k ? res : -res;
}
inline void put(register int n)
{
register char* tpos = tbuf;
if (n < 0) {*outpos++ = '-';n = -n;}
do *tpos++ = 48 + n % 10;while (n /= 10);
while (tpos != tbuf)*outpos++ = *--tpos;
}
int main()
{
register int n;
fread(inbuf, 1, 2110, stdin);
n = get();
while (n--) put(get() + get()), *outpos++ = '\n';
fwrite(outbuf, 1, outpos - outbuf, stdout);
}
| Compilation | N/A | N/A | Compile Error | Score: N/A | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-10 03:11:05 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠