3 条题解
-
0
#include <iostream> #include <map> #include <string> using namespace std; int main() { int n; cin >> n; map<string, int> students; for(int i = 0; i < n; i++) { string name; int age; cin >> name >> age; students[name] = age; } for(const auto&student : students) { cout << student.first << " " << student.second << endl; } return 0; }
信息
- ID
- 67
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 4
- 标签
- 递交数
- 710
- 已通过
- 346
- 上传者