HUST Online Judge WebBoard
Problem 222222 >> 222222
241040500610 @ 2024-11-30 11:57:05
[ Quote ] [ Edit ] [ Delete ] 1#
#include <stdio.h>
#include <stdlib.h>

int main()
{
int n;
int max;
scanf("%d",&max);
while(scanf("%d",&n))
{
if(n>max)
{
max=n;
}
if(n<0)
{
break;
}
}

printf("%d",max);
}