提交记录 12371


用户 题目 状态 得分 用时 内存 语言 代码长度
Clever_Jimmy 1000i. 【传统题】 A+B Problem Accepted 100 57.88 us 36 KB C++11 969 B
提交时间 评测时间
2020-03-30 11:52:51 2020-08-01 02:54:35
#include <bits/stdc++.h>
#define LL long long

namespace io {
    template <typename T> inline void read(T & _x) {
        int f = 0, ch; _x = 0;
        while(!isdigit(ch = getchar())) f |= ch == '-';
        while(isdigit(ch)) _x = _x * 10 + ch - '0', ch = getchar();
        if(f) _x = -_x;
    }
    template <typename T, typename ... Args> inline void read(T &_f, Args& ... args) {
        read(_f), read(args ...);
    }
    inline void _deal(char ch) { putchar(ch); }
    template <typename T> inline void _deal(T _x) {
        if (_x < 0) putchar('-'), _x = -_x;
        if (_x > 9) _deal(_x / 10);
        putchar(_x % 10 + '0');
    }
    inline void write() {}
    template <typename T, typename ... Args> inline void write(T _f, Args ... args) {
        _deal(_f), write(args...);
    }
}

int main() {
	int n;
	io::read(n);
	for (int i = 1; i <= n; i++) {
                int a, b;
		io::read(a, b);
                io::write(a + b, '\n');
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #157.88 us36 KBAcceptedScore: 100


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