提交记录 28556
提交时间 |
评测时间 |
2025-09-23 22:00:32 |
2025-09-23 22:00:34 |
#include<bits/stdc++.h>
using namespace std;
int a,b,n;
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(){
ios::sync_with_stdio(false);
cin.tie(0);
n=read();
int x;
while(n--){
a=read();
b=read();
x=a+b;
write(x);
putchar('\n');
}
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 54.11 us | 60 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-10-09 14:43:27 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠