答案在下面
#include <iostream>using namespace std;int main(){ int a,b,h,i,m; cin>>a; m=0; for(h=1;h<=a;h=h+1) { cin>>b; if(b>m) { m=b; } } cout<<m<<endl; return 0;}