| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 37183 | chenyifei | 最高分数的学生姓名 | C++ | Accepted | 0 MS | 256 KB | 241 | 2024-01-19 15:39:40 |
#include<iostream> #include<string> using namespace std; int main() { int a,maxn=-1,i,n,t; string s,maxs; cin>>n; for(i=1;i<=n;i++){ cin>>a>>s; if(a>maxn){ maxn=a; maxs=s; } } cout<<maxs<<endl; return 0; }