提交记录 10098


用户 题目 状态 得分 用时 内存 语言 代码长度
denverjin 1000i. 【传统题】 A+B Problem Wrong Answer 0 43.27 us 48 KB C++ 704 B
提交时间 评测时间
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;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #143.27 us48 KBWrong AnswerScore: 0


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