Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
56758 | 许兴平 | 最高的分数 | C++ | Accepted | 0 MS | 236 KB | 258 | 2024-11-15 19:25:07 |
#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; }