提交记录 10068
提交时间 |
评测时间 |
2019-08-11 20:27:19 |
2020-08-01 02:00:43 |
#include <cstdio>
inline void write(int x) {
if (x < 0) {
x = -x;
putchar('-');
}
if (x > 9) write(x / 10);
putchar(x % 10 + 48);
}
inline void write2(int x) {
if (x < 0) {
x = -x;
putchar('-');
}
static int sta[35];
int top = 0;
do {
sta[top++] = x % 10, x /= 10;
} while (x);
while (top) putchar(sta[--top] + 48);
}
int main() {
int n;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
int a=0,b=0;
scanf("%d%d",&a,&b);
write2(a+b),putchar('\n');
}
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 24.13 us | 16 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 22:51:45 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠