提交记录 5219


用户 题目 状态 得分 用时 内存 语言 代码长度
qingchengliu 1000i. 【传统题】 A+B Problem Wrong Answer 0 9.47 us 12 KB C++11 519 B
提交时间 评测时间
2018-08-12 22:34:48 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 a, b;
    scan_d(a);
    scan_d(b);
    printf("%d\n", a + b);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #19.47 us12 KBWrong AnswerScore: 0


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