提交记录 16254


用户 题目 状态 得分 用时 内存 语言 代码长度
Ender_32k 1000i. 【传统题】 A+B Problem Accepted 100 61.78 us 36 KB C++ 590 B
提交时间 评测时间
2021-06-07 18:46:59 2021-06-07 18:47:01
#include <bits/stdc++.h>
using namespace std;

int n, a, b;

inline int read() {
    int w = 1, q = 0;
    char ch = ' ';
    while (ch != '-' && (ch < '0' || ch > '9')) ch = getchar();
    if (ch == '-') w = -1, ch = getchar();
    while (ch >= '0' && ch <= '9') q = q * 10 + ch - '0', ch = getchar();
    return w * q;
}

inline void write(int x) {
    if (x < 0) {
        x = ~(x - 1);
        putchar('-');
    }
    if (x > 9) write(x / 10);
    putchar(x % 10 + '0');
}

int main() {
	n = read();
	while (n--) {
		a = read();
		b = read();
		write(a + b);
		puts("");
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #161.78 us36 KBAcceptedScore: 100


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