提交记录 22354


用户 题目 状态 得分 用时 内存 语言 代码长度
mingjunyi 1000i. 【传统题】 A+B Problem Wrong Answer 0 6.7 us 12 KB C++ 528 B
提交时间 评测时间
2024-08-19 12:29:52 2024-08-19 12:29:53
#include<cstdio>
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 a = rd(),b = rd();
        wt(a + b);
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #16.7 us12 KBWrong AnswerScore: 0


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