提交记录 21118
提交时间 |
评测时间 |
2024-01-30 17:32:18 |
2024-01-30 17:32:20 |
#include<bits/stdc++.h>
#define f(i,a,b) for(int i=(a);i<=(b);i++)
namespace IO
{
const int MAXSIZE=1<<10;
char buf[MAXSIZE],*p1,*p2;
#define gc()\
(p1==p2&&(p2=(p1=buf)+fread(buf,1,MAXSIZE,stdin),p1==p2)?EOF:*p1++)
void rd(int&x)
{
bool sign=0;x=0;char ch=gc();
while(!isdigit(ch)){if(ch=='-')sign=1;ch=gc();}
while(isdigit(ch)){x=(x<<1)+(x<<3)+(ch^48);ch=gc();}
if(sign)x=-x;
}
}
using namespace std;
using namespace IO;
int n,a,b;
int main()
{
rd(n);
f(i,1,n)
{
rd(a);rd(b);
printf("%d\n",a+b);
}
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 64.88 us | 36 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-07-21 00:40:27 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠