提交记录 9923


用户 题目 状态 得分 用时 内存 语言 代码长度
morainzh 1000i. 【传统题】 A+B Problem Accepted 100 11.56 us 16 KB C++ 776 B
提交时间 评测时间
2019-07-22 16:58:26 2020-08-01 01:58:36
#pragma GCC optimize("no-stack-protector,unroll-loops,Ofast")
#include <stdio.h>
#include <ctype.h>

char _I_Buffer[2110],_O_Buffer[2110],*_I_pos = _I_Buffer,*_O_pos = _O_Buffer;
inline int get()
{
	register int res = 0, k = 1;
	while (!isdigit(*_I_pos))
		if (*_I_pos++ == '-')k = 0;
	while (isdigit(*_I_pos)) (res = (res << 3) + (res << 1)) += (*_I_pos++) & 15;
	return k ? res : -res;
}
inline void put(register int n)
{
	static char _buf[20];
	register char* _pos(_buf);
	if (n < 0) {*_O_pos++ = '-';n = -n;}
	do *_pos++ = 48 + n % 10;while (n /= 10);
	while (_pos != _buf)*_O_pos++ = *--_pos;
}
int main()
{
	fread(_I_Buffer, 1, 2110, stdin);
	register int n = get();
	while (n--) put(get() + get()), *_O_pos++ = '\n';
	fwrite(_O_Buffer, 1, _O_pos - _O_Buffer, stdout);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #111.56 us16 KBAcceptedScore: 100


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