Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77844 sh25_wangtaojie 最高分数的学生姓名 C++ 通过 0 MS 252 KB 422 2025-12-26 14:53:38

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


测评信息: