想看題目請點我
#include <iostream>
using namespace std;
int main() {
int n ;
while(cin >> n)
{
int people =0 , max = 0 ;
for(int i = n ; n > 0 ; n--)
{
cin >> people ;
if(people > max) max = people ;
}
cout << max << endl ;
}
return 0;
}