记录编号 268810 评测结果 AAAAAAAAAA
题目名称 [HZOI 2015] Math 最终得分 100
用户昵称 Gravatarstdafx.h 是否通过 通过
代码语言 C++ 运行时间 0.033 s
提交时间 2016-06-12 19:27:40 内存使用 3.37 MiB
显示代码纯文本
#include <stdio.h>

namespace io
{
	#define RG register
	const int MAXBUF = 1 << 15;
	const int OUTPUT = 1 << 22;
	char b[MAXBUF], *S = b, *T = b;
	#define getc() (S == T && (T = (S = b) + fread(b, 1, MAXBUF, stdin), S == T) ? 0 : *S++)
	
	#define O(x) __attribute__((optimize("-O"#x)))
	#define IL __inline__ __attribute__((always_inline))
	O(3) int read()
	{
		RG int aa = 0; RG char ch, *S = io::S, *T = io::T;
		for(ch = getc(); ch < '0' || ch > '9'; ch = getc()) ;
		for(aa = ch - '0', ch = getc(); '0' <= ch && ch <= '9'; ch = getc()) aa = aa * 10 + ch - '0';
		io::S = S, io::T = T; return aa;
	}
	char buff[OUTPUT], *iter = buff;
}

__attribute__((optimize("-Os"))) bool work(){
	freopen("math.in","r",stdin);
	freopen("math.out","w",stdout);
	register int n,x,i,ans=-1; n=io::read();
	for(i=1;i<=n;i++){
		x=io::read(); if(x>ans) ans=x;
	} return printf("%d\n",ans),0;
}

bool seg=work(); main(){;}