提交记录 18840
提交时间 |
评测时间 |
2022-12-29 17:59:20 |
2022-12-29 17:59:22 |
#include <bits/stdc++.h>
// fast_io
using i64 = int64_t;
using u32 = uint32_t;
using u64 = uint64_t;
#ifdef LOCAL
class IO {
public:
inline int operator()() {
int x;
std::cin >> x;
return x;
}
inline void operator()(int x, char c = ' ') {
std::cout << x << c << std::flush;
}
} io;
#else
class IO {
private:
char buffer[1 << 12], *I = buffer, *O = buffer;
public:
inline int operator()() {
int x{};
for (; !isdigit(*I); ++I);
for (; +isdigit(*I); ++I) x = x * 10 + *I - '0';
return x;
}
inline void operator()(int x, char c = ' ') {
char ch[10];
char *s = ch;
for (; x >= 10; x /= 10)
*s++ = '0' + x % 10;
*O++ = '0' + x;
while (s != ch)
*O++ = *--s;
*O++ = c;
}
IO() { fread(buffer, 1, sizeof(buffer), stdin); }
~IO() { fwrite(buffer, 1, O - buffer, stdout); }
} io;
#endif
int main() {
for (auto i = io(); i > 0; --i) io(io() + io());
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 42.67 us | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-09-16 17:00:36 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠