提交记录 29623
| 提交时间 |
评测时间 |
| 2026-08-05 17:07:48 |
2026-08-05 17:07:51 |
#include <cstdio>
#include <bits/stdc++.h>
template <typename T> inline void rd(T &x){
x = 0; int f = 1; char ch = getchar();
while(!isdigit(ch)){ if(ch == '-') f = -1; ch = getchar();}
while(isdigit(ch)) x = (x<<1) + (x<<3) + (ch^48), ch = getchar();
x *= f;
}
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 n,a,b;
int main() {
rd(n);
for (int i = 1; i <= n; i++) {
rd(a);rd(b);
write2(a+b),putchar('\n');
}
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 56.07 us | 36 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-08-06 15:39:14 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠