提交记录 18852


用户 题目 状态 得分 用时 内存 语言 代码长度
chaihf 1000i. 【传统题】 A+B Problem Accepted 100 14.11 us 28 KB C++11 1.20 KB
提交时间 评测时间
2022-12-29 18:50:05 2022-12-29 18:50:06
//#include <bits/stdc++.h>
// fast_io
//using i64 = int64_t;
//using u32 = uint32_t;
//using u64 = uint64_t;
#include<cstdio>
#include<cstring>
#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 buf[1 << 12], *ptrI = buf, *ptrO = buf;
public:
    inline int operator()() {
        int x{};
        int n{};
        for (; *ptrI < 48; ++ptrI) n = *ptrI == 45;
        for (; *ptrI > 47; ++ptrI) x = x * 10 + *ptrI - 48;
        return n ? -x : +x;
    };
    inline void operator()(int x, char c = ' ') {
        if (x < 0) x = -x, *ptrO++ = '-';
        static char buf[21];
        char *end = buf + 21;
        char *ptr = buf + 21;
        *--ptr = c;
        for (; x >= 10; x /= 10)
            *--ptr = char(48 + x % 10);
        *--ptr = char(48 + x);
        memcpy(ptrO, ptr, end - ptr);
        ptrO += end - ptr;
    };
    IO() { fread(buf, 1, sizeof(buf), stdin); }
    ~IO() { fwrite(buf, 1, ptrO - buf, stdout); }
} io;
#endif
int main() {
    for (auto i = io(); i > 0; --i) io(io() + io(), 10);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #114.11 us28 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-05-04 08:26:10 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用