Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78126 sh25_wanghy 最高分数的学生姓名 C++ 通过 1 MS 256 KB 422 2025-12-26 15:23:47

Tests(1/1):


#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; }


测评信息: