提交记录 29621
| 提交时间 |
评测时间 |
| 2026-08-05 15:57:11 |
2026-08-05 15:57:14 |
#include<bits/stdc++.h>
using namespace std;
#define BS 100
#define gc() getchar()
#define pc(x) putchar(x)
// #define pc(x) obuf[osz++]=(x)
#define D (c=gc(),isdigit(c))
#define tn (x<<3)+(x<<1)
char buf[BS],*ST,*ED,obuf[BS],osz,c;
template<typename T>inline void read(T &x){
x=0;
int flag=1;
while(!D)flag=(c=='-'?-flag:flag);
while(x=tn+(c&15),D);
x=x*flag;
}
template<typename T>inline void write(T x){
if(x>=10)write(x/10);
pc((x%10)|'0');
}
// inline void putc(const char &c){pc(c);}
// inline void flush(){fwrite(obuf,1,osz,stdout);}
#undef BS
#undef gc
#undef D
#undef tn
int t, a, b;
int main() {
read(t);
while(t --) {
read(a);read(b);
a=a+b;
if(a<0)pc('-'),a=-a;
write(a);
pc('\n');
}
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 58.83 us | 36 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-08-06 15:45:14 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠