- 统计数字
1239
- @ 2025-12-13 14:34:56
#include<bits/stdc++.h> using namespace std; map<int,int> m; int n,x; int main(){ cin>>n; for(int i=1;i<=n;i++){ cin>>x; m[x]++; } for(auto mp:m){ cout<<mp.first<<" "<<mp.second<<endl; } return 0; }
0 条评论
目前还没有评论...
信息
- ID
- 240
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 3
- 标签
- (无)
- 递交数
- 67
- 已通过
- 36
- 上传者