提交记录 10996


用户 题目 状态 得分 用时 内存 语言 代码长度
denverjin 1000i. 【传统题】 A+B Problem Accepted 100 45.33 us 44 KB C++ 981 B
提交时间 评测时间
2019-10-14 22:24:49 2020-08-01 02:37:12
#include <bits/stdc++.h>
using namespace std;

char ibuf[8192], *ied = ibuf + 8192, *ips = ied;
#define gc() ips == ied && (ied = (ips = ibuf) + fread(ibuf, 1, 8192, stdin), ips == ied) ? EOF : *ips ++
void read(int & x) {
	x = 0; bool f = 0; char c = gc();
	while (c < '0' || c > '9') {f |= c == '-'; c = gc();}
	while (c >= '0' && c <= '9') {x = (x << 3) + (x << 1) + (c & 15); c = gc();}
	x = !f ? x : -x;
}
char obuf[8192], *oed = obuf + 8192, *ops = obuf;
#define pc(x) (ops == oed && (ops = obuf) + fwrite(obuf, 1, 8192, stdout)), *ops ++ = x
#define flush() fwrite(obuf, 1, ops - obuf, stdout), ops = obuf, fflush(stdout)
void ps(const char *s) {while (*s) pc(*s ++);}
void write(int x) {
	char stk[25], top = 0;
	if (x < 0) pc('-'), x = -x;
	if (x == 0) pc('0');
	while (x) stk[top ++] = x - x / 10 * 10 + '0', x /= 10;
	while (top) pc(stk[-- top]);
}

int main() {
	int n; read(n);
	while (n --) {int a, b; read(a); read(b); write(a + b); pc('\n');}
	flush();
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #145.33 us44 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-25 23:29:53 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用