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