提交记录 17874


用户 题目 状态 得分 用时 内存 语言 代码长度
zyc211428 1000i. 【传统题】 A+B Problem Wrong Answer 0 108.1 us 36 KB C++11 491 B
提交时间 评测时间
2022-07-27 22:36:19 2022-07-27 22:36:21
#include<bits/stdc++.h>
using namespace std;
int n,a,b;
inline int read(){
	char c=getchar();
	int x=0;
	while(c<'0'||c>'9'){ 
	    if(c=='-') c=getchar(),x=-c;
	    c=getchar();
	}
	while(c>=48&&c<=57)
		x=x*10+c-48,c=getchar();
	return x;
}
inline void write(int x){
	if(x<0){
            cout<<"-";
            write(-x);
            return;
        }
	if(x/10) write(x/10); 
	cout<<x%10;
	return;
}
int main(){
	n=read();
	while(n--) a=read(),b=read(),write(a+b),cout<<'\n';
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1108.1 us36 KBWrong AnswerScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-16 20:13:45 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠