提交记录 3170
提交时间 |
评测时间 |
2018-07-10 11:19:17 |
2020-07-31 21:12:09 |
#include <cstdio>
#include <cctype>
using namespace std;
inline int readint() {
int f=1, r=0; char c=getchar();
while(!isdigit(c)) { if(c=='-')f=-1; c=getchar(); }
while(isdigit(c)) { r=r*10+c-'0'; c=getchar(); }
return f*r;
}
inline void writeint(int x) {
static char t[25], *pt; pt = t;
if(x<0) { putchar('-'); x = -x; }
do {
*pt++ = x%10 + '0'; x /= 10;
} while(x);
pt--;
while(pt>=t) putchar(*pt--);
putchar(10);
}
int main() {
int T, a, b;
T = readint();
while(T--) {
a = readint(), b = readint();
writeint(a + b);
}
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 22.83 us | 12 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 22:53:52 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠