OJ-Problems-Source/HDOJ/1563_autoAC.cpp
2016-08-14 17:42:04 +08:00

18 lines
276 B
C++

#include<stdio.h>
int main()
{
int n,m,x;
while(scanf("%d",&n)!=EOF&&n)
{
x=0;
while(n--)
{
scanf("%d",&m);
if(x<m)
x=m;
}
printf("%d\n",x);
}
return 0;
}