提交记录 2860


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 1000i. 【传统题】 A+B Problem Compile Error 0 0 ns 0 KB C++ 845 B
提交时间 评测时间
2018-06-30 11:32:50 2020-07-31 21:07:46
#include <stdio.h>

inline int getint() {
	int x = 0;
	char c = getchar();
	while (c <= 32) c = getchar();
	int f = 1;
	if (c == '-') f = -1, c = getchar();
	while (c > 32) x = x * 10 + c - 48, c = getchar();
	return x * f;
}

template <class T>
inline void _putint(T x) {
	return x ? _putint(x / 10), putchar(48 + x % 10), void() : void();
}

template <class T>
inline void putint(T x) {
	if (x < 0) return putchar('-'), putint(-x), void();
	return x == 0 ? putchar('0'), void() : _putint(x), void();
}
namespace judgeduck {
	extern char *stdout_content;
	extern int stdout_size;
	extern int stdout_max_size;
}
extern "C" int sprintf(...);
int main() {
	int n = getint();
	while (n--) {
		int a = getint();
		int b = getint();
		 judgeduck::stdout_size += sprintf(judgeduck::stdout_content+judgeduck::stdout_size, "%d\n", a+b); 
	}
	return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


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