
#include <stdio.h>
int main(){
int n;
int max_height=0;
int height;
if (scanf("%d",&n)!=EOF){
for (int i=0;i<n;i++){
if (scanf("%d",&height)!=EOF){
if (i==0){max_height=height;}
if (height>max_height){max_height=height;}
}
}
printf("%d",max_height);
}
else{
printf("input wrong");
}
return 0;
}
系统当前共有 481 篇文章