提交记录 2873


用户 题目 状态 得分 用时 内存 语言 代码长度
wys 1000i. 【传统题】 A+B Problem Accepted 100 25.49 us 12 KB C++ 728 B
提交时间 评测时间
2018-07-01 01:33:04 2020-07-31 21:07:55
// #2825
// This should get AC if global initialization is correctly implemented ...

#include <stdio.h>

inline int getint() {
	int x = 0;
	char c = getchar();
	while (c <= 32) c = getchar();
	int f = 1;
	if (c == '-') f = -1, c = getchar();
	while (c > 32) x = x * 10 + c - 48, c = getchar();
	return x * f;
}

template <class T>
inline void _putint(T x) {
	return x ? _putint(x / 10), putchar(48 + x % 10), void() : void();
}

template <class T>
inline void putint(T x) {
	if (x < 0) return putchar('-'), putint(-x), void();
	return x == 0 ? putchar('0'), void() : _putint(x), void();
}

int n = getint();

int main() {
	while (n--) {
		int a = getint();
		int b = getint();
		putint(a + b);
		putchar('\n');
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #125.49 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-27 07:50:48 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用