1 条题解
-
0
煎饼哥哥好鲨题
读入时,分别统计四种不同提交结果,最后按题目要求输出即可。
#include<iostream> #include<map> int main(){ int t; std::cin >> t; std::map<std::string, int> cnt; while(t--){ std::string s; std::cin >> s; cnt[s]++; } for(std::string s : {"AC", "WA", "TLE", "RE"}) std::cout << s << " x " << cnt[s] << std::endl; }
- 1
信息
- ID
- 75
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 1
- 标签
- 递交数
- 6
- 已通过
- 6
- 上传者