提交记录 20036


用户 题目 状态 得分 用时 内存 语言 代码长度
cxpjdo 1000i. 【传统题】 A+B Problem Accepted 100 58.38 us 36 KB C++11 494 B
提交时间 评测时间
2023-08-25 19:31:30 2023-08-25 19:31:33
#include<bits/stdc++.h>
using namespace std;
int n,a,b;
inline int read(){
	char c=getchar();
	int x=0,f=1;
	while(c<'0'||c>'9'){
		if(c=='-')
			f=-1;
		c=getchar();
	}
	while(c>='0'&&c<='9'){
		x=x*10+c-'0';
		c=getchar();
	}
	return x*f;
}
inline void write(int x){
	if(x<0){
		putchar('-');
		x=-x;
	}
	if(x>9){
		write(x/10);
	}
	putchar(x%10+'0');
	return;
}
int main(){
	n=read();
	for(register int i=1;i<=n;i++){
		a=read();
		b=read();
		write(a+b);
		putchar('\n');
	}

	return 0;
}


CompilationN/AN/ACompile OKScore: N/A

Testcase #158.38 us36 KBAcceptedScore: 100


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