提交记录 6776


用户 题目 状态 得分 用时 内存 语言 代码长度
shq 1000i. 【传统题】 A+B Problem Accepted 100 9.53 us 36 KB C++ 814 B
提交时间 评测时间
2018-11-05 16:30:12 2019-01-19 15:22:49
#pragma GCC optimize("Ofast,unroll-loops")
#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;
	do res = res * 10, res += (*_I_pos++) & 15;while (isdigit(*_I_pos));
	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;
}
inline void put(register char ch){*_O_pos++ = ch;}
int main()
{
	register int n,a,b;
	fread(_I_Buffer, 1, 2110, stdin);
	n = get();
	while (n--) a = get(), b = get(), put(a + b), put('\n');
	fwrite(_O_Buffer, 1, _O_pos - _O_Buffer, stdout);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #19.53 us36 KBAcceptedScore: 100


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