提交记录 5217


用户 题目 状态 得分 用时 内存 语言 代码长度
qingchengliu 1000i. 【传统题】 A+B Problem Wrong Answer 0 39.44 us 36 KB C++ 783 B
提交时间 评测时间
2018-08-12 22:30:22 2020-08-01 00:13:55
#include <bits/stdc++.h>
#include <ext/rope>
using namespace std;
using namespace __gnu_cxx;

#ifdef vscode
#define paus system("pause")
#else
#define paus return 0
#endif

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;
}

template <class T>
inline void print_d(T x) {
    if (x > 9) {
        print_d(x / 10);
    }
    putchar(x % 10 + '0');
}

int main(void) {
    int a, b;
    scan_d(a); scan_d(b);
    print_d(a+b);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #139.44 us36 KBWrong AnswerScore: 0


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