提交记录 28415


用户 题目 状态 得分 用时 内存 语言 代码长度
gxlzm 1000. 测测你的 A+B Compile Error 0 0 ns 0 KB C++ 431 B
提交时间 评测时间
2025-08-20 10:37:54 2025-08-20 10:37:56
#include<bits/stdc++.h>

#define gc getchar
#define pc putchar

using namespace std;
int a, b;
int read(){
	int k=1, x=0;
	char c=gc();
	if(c<'0'||c>'9'){
		if(c=='-') k=-1;
		c=gc();
	}
	while(c>='0'&&c<='9') x=x*10+c-'0', c=gc();
	return x*k;
}

void Out(int x){
	if(x<0) x=-x, pc('-');
	if(x<10){
		pc(x+'0');
		return;
	}
	Out(x/10); pc(x%10+'0');
}
int main(){
	freopen("a+b.in", "r", stdin);
	a=read(), b=read();
	Out(a+b);
}

CompilationN/AN/ACompile ErrorScore: N/A


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