文章
6
粉丝
72
获赞
0
访问
3.5k
#include <iostream>
#include <stdlib.h>
#include <map>
using namespace std;
int a[1005];
int main()
{
int n, m;
while (cin>>n>>m)
{
for (int i = 0; i < 1005; i++)
{
a[i] = 0;
}
map<int, int>r;
for (int i = 0; i < n; i++)
{
int j;
scanf("%d", &j);
a[i] = j;
r[j]++;
}
&nbs...
登录后发布评论
暂无评论,来抢沙发