提交记录 5220


用户 题目 状态 得分 用时 内存 语言 代码长度
qingchengliu 1000i. 【传统题】 A+B Problem Accepted 100 38.03 us 12 KB C++11 601 B
提交时间 评测时间
2018-08-12 22:36:09 2020-08-01 00:13:56
#include <stdio.h>

template <class T>
inline bool scan_d(T& ret) {
    char c;
    int sgn;
    if (c = getchar(), c == EOF) {
        return 0;  // EOF
    }
    while (c != '-' && (c < '0' || c > '9')) {
        c = getchar();
    }
    sgn = (c == '-') ? -1 : 1;
    ret = (c == '-') ? 0 : (c - '0');
    while (c = getchar(), c >= '0' && c <= '9') {
        ret = ret * 10 + (c - '0');
    }
    ret *= sgn;
    return 1;
}

int main(void) {
    int n;
    scan_d(n);
    for (int i = 0; i < n; ++i) {
        int a, b;
        scan_d(a);
        scan_d(b);
        printf("%d\n", a + b);
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #138.03 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-12 06:22:06 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠