提交记录 9701


用户 题目 状态 得分 用时 内存 语言 代码长度
sys_con 1000i. 【传统题】 A+B Problem Accepted 100 36.36 us 16 KB C++ 554 B
提交时间 评测时间
2019-07-03 19:23:19 2020-08-01 01:46:38
#include <cstdio>

char _buf[1000000], *_p1 = _buf, *_p2 = _buf;
inline char gc () {
	if (_p1 == _p2) _p2 = (_p1 = _buf) + fread(_buf, 1, 1000000, stdin);
	return _p1 == _p2 ? EOF : *(_p1++);
}

template <typename Tp>
inline void read (Tp& x) {
	x = 0;
	int y = 1;
	char c = gc();
	while (c < '0' || '9' < c) c == '-' && (y = -1), c = gc();
	while ('0' <= c && c <= '9') x = x * 10 + (c ^ 48), c = gc();
	x *= y;
}

int main () {
	int n, a, b;
        read(n);
        while(n--) {
	    read(a), read(b);
	    printf("%d\n", a + b);
       }
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #136.36 us16 KBAcceptedScore: 100


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