提交记录 22355


用户 题目 状态 得分 用时 内存 语言 代码长度
mingjunyi 1000i. 【传统题】 A+B Problem Accepted 100 54.88 us 36 KB C++ 585 B
提交时间 评测时间
2024-08-19 12:31:12 2024-08-19 12:31:14
#include<bits/stdc++.h>
using namespace std;

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

void wt(int x) {
	static int sta[35];
	int f = 1;
	if(x < 0) f = -1,x *= f;
	int top = 0;
	do {
		sta[top++] = x % 10, x /= 10;
	} while (x);
	if(f == -1) putchar('-');
	while (top) putchar(sta[--top] + 48);
}

signed main() {
int t = rd();
while(t--){
int a = rd(),b = rd();
wt(a + b);
putchar('\n');

}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #154.88 us36 KBAcceptedScore: 100


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