提交时间:2024-11-15 19:25:07

运行 ID: 56758

#include<bits/stdc++.h> using namespace std; int main(){ int mark,students,a,max; cin>>students; a=students; cin>>a; max=mark; while(students>=2){ cin>>mark; if(mark>=max){ max=mark; } students--; } cout<<max; return 0; }