提交记录 16255


用户 题目 状态 得分 用时 内存 语言 代码长度
Ender_32k 1000i. 【传统题】 A+B Problem Accepted 100 54.11 us 36 KB C++ 600 B
提交时间 评测时间
2021-06-07 18:47:36 2021-06-07 18:47:38
#include <bits/stdc++.h>
namespace q {
	inline int read() {
		int w = 1, q = 0;
		char ch = ' ';
		while (ch != '-' && (ch < '0' || ch > '9')) ch = getchar();
		if (ch == '-') w = -1, ch = getchar();
		while (ch >= '0' && ch <= '9') q = q * 10 + ch - '0', ch = getchar();
		return w * q;
	}

	inline void write(int x) {
		if (x < 0) {
			x = ~(x - 1);
			putchar('-');
		}
		if (x > 9) write(x / 10);
		putchar(x % 10 + '0');
	}
}
using namespace std;
using namespace q;

int n, a, b;



int main() {
	n = read();
	while (n--) {
		a = read();
		b = read();
		write(a + b);
		puts("");
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #154.11 us36 KBAcceptedScore: 100


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