| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81232 | sh25_zhangyy | 候选人得票统计 | C++ | 通过 | 0 MS | 240 KB | 384 | 2026-01-04 15:42:37 |
#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; }