提交记录 11467


用户 题目 状态 得分 用时 内存 语言 代码长度
yanghaiqie 1000i. 【传统题】 A+B Problem Accepted 100 35.66 us 16 KB C++ 944 B
提交时间 评测时间
2020-01-15 22:04:32 2020-08-01 02:43:45
#include <stdio.h>

#define BUFSIZE 16384

int get_int() {
	static char buf[BUFSIZE];
	static char *bufnow = buf;
	static char *bufend = buf;
	int s = 0;
	int flag = 0;
	if (bufnow == bufend) {
		bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
		bufnow = buf;
	}
	int c = *bufnow++;
	while ((c < '0' || c > '9') && c != '-') {
		if (bufnow == bufend) {
			bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
			bufnow = buf;
		}
		c = *bufnow++;
	}
	if (c == '-') {
		flag = 1;
		if (bufnow == bufend) {
			bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
			bufnow = buf;
		}
		c = *bufnow++;
	}
	while (c >= '0' && c <= '9') {
		s = s * 10 + c - '0';
		if (bufnow == bufend) {
			bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
			bufnow = buf;
		}
		c = *bufnow++;
	}
	return flag ? -s : s;
}

int main() {
	int n = get_int();
	for (int i = 1; i <= n; i++) {
		int shu1 = get_int();
		int shu2 = get_int();
		printf("%d\n", shu1 + shu2);
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #135.66 us16 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-19 23:47:14 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用