提交记录 6311


用户 题目 状态 得分 用时 内存 语言 代码长度
TowardstheSun 1000i. 【传统题】 A+B Problem Accepted 100 18.55 us 28 KB C++ 987 B
提交时间 评测时间
2018-10-06 00:26:52 2020-08-01 00:41:56
#pragma GCC optimize("Ofast,unroll-loops")
#include <stdio.h>
#include <ctype.h>

struct IO_Tp {
	char _I_Buffer[3<<10],_O_Buffer[3<<10],*_I_pos,*_O_pos;

	IO_Tp(): _I_pos(_I_Buffer), _O_pos(_O_Buffer){fread(_I_Buffer, 1, 3<<10, stdin);}
	~IO_Tp() { fwrite(_O_Buffer, 1, _O_pos - _O_Buffer, stdout); }

	inline IO_Tp& operator>>(int& x)
	{
		register int res = 0;
		register bool k = 1;
		while (!isdigit(*_I_pos))
			if (*_I_pos++ == '-')k = 0;
		do (res = (res << 3) + (res << 1)) += (*_I_pos++) & 15;while (isdigit(*_I_pos));
		x = (k ? res : -res);
		return *this;
	}

	inline IO_Tp& operator<<(register int n)
	{
		if (n < 0) {*_O_pos++ = '-';n = -n;}
		static char _buf[20];
		register char* _pos(_buf);
		do *_pos++ = 48 + n % 10;while (n /= 10);
		while (_pos != _buf)*_O_pos++ = *--_pos;
		return *this;
	}
	inline IO_Tp& operator<<(register char ch){*_O_pos++ = ch;return *this;}
};
IO_Tp IO;
int main()
{
	int n,a,b;
	IO >> n;
	while (n--) IO >> a >> b, IO << a + b << '\n';
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #118.55 us28 KBAcceptedScore: 100


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