| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78126 | sh25_wanghy | 最高分数的学生姓名 | C++ | Accepted | 1 MS | 256 KB | 422 | 2025-12-26 15:23:47 |
#include <iostream> #include <string> using namespace std; int main() { int N; cin >> N; int max_score = -1; string top_student; for (int i = 0; i < N; ++i) { int score; string name; cin >> score >> name; if (score > max_score) { max_score = score; top_student = name; } } cout << top_student; return 0; }