OJ-Problems-Source/HDOJ/2107_autoAC.cpp
2016-08-22 00:08:26 +08:00

20 lines
317 B
C++

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