提交记录 10119


用户 题目 状态 得分 用时 内存 语言 代码长度
denverjin 1000i. 【传统题】 A+B Problem Accepted 100 17.94 us 32 KB C++ 908 B
提交时间 评测时间
2019-08-13 18:06:34 2020-08-01 02:01:47
#include <stdio.h>

struct IO {
	char ibuf[8192], *ips = ibuf + 8192, obuf[8192], *ops = obuf;
	int getchar() {if (ips == ibuf + 8192) fread(ips = ibuf, 1, 8192, stdin); return *ips ++;}
	void putchar(int c) {if (ops == obuf + 8192) fwrite(ops = obuf, 1, 8192, stdout); *ops ++ = c;}
	~IO() {fwrite(obuf, 1, ops - obuf, stdout);}
} io;
#define getchar io.getchar
#define putchar io.putchar

inline int read() {
	register int x = 0, f = 1, c = getchar();
	while (c <= 32) c = getchar();
	if (c == '-') f = 0, c = getchar();
	while (c > 32) (x = (x << 3) + (x << 1)) += c & 15, c = getchar();
	return f ? x : -x;
}

inline void write(register int x) {
	char stk[20], *ps = stk;
	if (x < 0) putchar('-'), x = -x;
	if (!x) putchar('0');
	while (x) *ps ++ = x % 10 + '0', x /= 10;
	while (ps != stk) putchar(*-- ps);
}

int main() {
	int n = read();
	while (n --) write(read() + read()), putchar(10);
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #117.94 us32 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-30 03:05:29 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠