提交记录 8824


用户 题目 状态 得分 用时 内存 语言 代码长度
_zay 1000i. 【传统题】 A+B Problem Accepted 100 23.13 us 16 KB C++11 1014 B
提交时间 评测时间
2019-03-13 11:13:50 2020-08-01 01:25:05
#include <cstdio>
#ifdef ONLINE_JUDGE
#define freopen(a, b, c)
#endif

typedef long long int ll;

namespace IPT {
	const int L = 1000000;
	char buf[L], *front=buf, *end=buf;
	char GetChar() {
		if (front == end) {
			end = buf + fread(front = buf, 1, L, stdin);
			if (front == end) return -1;
		}
		return *(front++);
	}
}

template <typename T>
inline void qr(T &x) {
	char ch = IPT::GetChar(), lst = ' ';
	while ((ch > '9') || (ch < '0')) lst = ch, ch=IPT::GetChar();
	while ((ch >= '0') && (ch <= '9')) x = (x << 1) + (x << 3) + (ch ^ 48), ch = IPT::GetChar();
	if (lst == '-') x = -x;
}

namespace OPT {
	char buf[120];
}

template <typename T>
inline void qw(T x, const char aft, const bool pt) {
	if (x < 0) {x = -x, putchar('-');}
	int top=0;
	do {OPT::buf[++top] = static_cast<char>(x % 10 + '0');} while (x /= 10);
	while (top) putchar(OPT::buf[top--]);
	if (pt) putchar(aft);
}

int main() {
	int a, b, n = 0; qr(n);
	while (n--) {
		a = 0; b = 0; qr(a); qr(b);
		qw(a + b, '\n', true);
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #123.13 us16 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 23:33:31 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠