提交记录 6314
| 提交时间 |
评测时间 |
| 2018-10-06 00:41:35 |
2020-08-01 00:42:00 |
#pragma GCC optimize("Ofast,unroll-loops")
#include <stdio.h>
#include <ctype.h>
char _I_Buffer[5<<9],_O_Buffer[5<<9],*_I_pos = _I_Buffer,*_O_pos = _O_Buffer;
inline int get()
{
register int res = 0, k = 1;
while (!isdigit(*_I_pos))
if (*_I_pos++ == '-')k = 0;
do (res = (res << 3) + (res << 1)) += (*_I_pos++) & 15;while (isdigit(*_I_pos));
return k ? res : -res;
}
inline void put(register int n)
{
if (n < 0) {*_O_pos++ = '-';n = -n;}
static char _buf[20];
register char* _pos(_buf);
do *_pos++ = 48 + n % 10;while (n /= 10);
while (_pos != _buf)*_O_pos++ = *--_pos;
}
inline void put(register char ch){*_O_pos++ = ch;}
int main()
{
fread(_I_Buffer, 1, 5<<9, stdin);
int n,a,b;
n = get();
while (n--) a = get(), b = get(), put(a + b), put('\n');
fwrite(_O_Buffer, 1, _O_pos - _O_Buffer, stdout);
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 12.72 us | 20 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-10 08:16:13 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠