提交记录 14431


用户 题目 状态 得分 用时 内存 语言 代码长度
SummerMo 1000i. 【传统题】 A+B Problem Accepted 100 11.63 us 16 KB C++11 2.50 KB
提交时间 评测时间
2020-09-26 19:14:14 2020-09-26 19:14:15
#define fastcall __attribute__((optimize("-O3")))
#pragma GCC optimize(2)
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#include <stdio.h>
#include <ctype.h>

char _I_Buffer[9<<8],_O_Buffer[9<<8],*_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 << 3) + (res << 1), 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, 9<<8, 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 #111.63 us16 KBAcceptedScore: 100


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