提交记录 28350


用户 题目 状态 得分 用时 内存 语言 代码长度
DHT 1000i. 【传统题】 A+B Problem Accepted 100 26.37 us 12 KB C++ 517 B
提交时间 评测时间
2025-07-17 11:36:02 2025-07-17 11:36:04
#include <stdio.h>

inline int read() {
	int w = 0, f = 1;
	char x = getchar();
	while(x < '0' || x > '9') {
		if(x == '-') f = -1;
		x = getchar();
	}
	while(x >= '0' && x <= '9') {
		w = w * 10 + x - '0';
		x = getchar();
	}
	return w * f;
}

void write(int x) {
	if(x < 0) putchar('-'), x = -x;
	if(x < 10) putchar(x + '0');
	else {
		write(x / 10);
		putchar(x % 10 + '0');
	}
}

int T;
int a, b;

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

CompilationN/AN/ACompile OKScore: N/A

Testcase #126.37 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2025-08-13 13:34:30 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠