提交记录 20552


用户 题目 状态 得分 用时 内存 语言 代码长度
c_cpp_a 1000i. 【传统题】 A+B Problem Accepted 100 12.54 us 16 KB C++14 780 B
提交时间 评测时间
2023-11-06 21:09:42 2023-11-06 21:09:43
#pragma GCC optimize("Ofast,unroll-loops")
#include <stdio.h>
#include <ctype.h>
#pragma GCC optimize(3)
char ib[9<<8],ob[9<<8],*ip = ib,*op = ob;
inline int read() {
	register int res = 0, k = 1;
	while (!isdigit(*ip)) if (*ip++ == '-')k = 0;
	do res = (res << 3) + (res << 1), res += (*ip++) & 15;while (isdigit(*ip));
	return k ? res : -res;
}
inline void write(register int n) {
	static char _buf[20];
	register char* _pos(_buf);
	if (n < 0) {*op++ = '-';n = -n;}
	do *_pos++ = 48 + n % 10;while (n /= 10);
	while (_pos != _buf)*op++ = *--_pos;
}
inline void write(register const char ch) {*op++ = ch;}
int main() {
	register int n,a,b;
	fread(ib, 1, 9<<8, stdin);
	n = read();
	while (n--) a = read(), b = read(), write(a + b), write('\n');
	fwrite(ob, 1, op - ob, stdout);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #112.54 us16 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 23:01:56 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠