提交记录 10098
| 提交时间 |
评测时间 |
| 2019-08-13 11:17:47 |
2020-08-01 02:01:42 |
#include <bits/stdc++.h>
using namespace std;
char ibuf[10000000], obuf[10000000];
char *ips = ibuf, *ops = obuf;
inline int read() {
register bool f = 1; register int x = 0;
while (*ips <= 32) if (*++ ips == '-') f = 0;
while (*ips > 32) (x = (x << 3) + (x << 1)) += *ips ++ & 15;
return f ? x : -x;
}
inline void write(register int x) {
static char _stk[20]; register char * ps = _stk;
if (x < 0) *ops ++ = '-', x = -x;
if (!x) *ps ++ = '0';
while (x) *ps ++ = '0' + x % 10, x /= 10;
while (ps != _stk) *ops ++ = *-- ps;
}
int main() {
fread(ibuf, 1, 10000000, stdin);
int n = read();
while (n --) write(read() + read()), *ops ++ = 10;
fwrite(obuf, 1, ops - obuf, stdout);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 43.27 us | 48 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-30 04:21:48 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠