mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
20 lines
317 B
C++
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;
|
||
|
}
|