Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78063 sh25_wangtaojie 候选人得票统计 C++ 通过 0 MS 248 KB 384 2025-12-26 15:20:01

Tests(1/1):


#include <iostream> #include <unordered_map> using namespace std; int main() { unordered_map<string, int> votes; string name; for (int i = 0; i < 10; ++i) { cin >> name; votes[name]++; } cout << "Li:" << votes["Li"] << endl; cout << "Zhang:" << votes["Zhang"] << endl; cout << "Fun:" << votes["Fun"] << endl; return 0; }


测评信息: