文章
113
粉丝
1
获赞
854
访问
26.7k
#include <bits/stdc++.h>
using namespace std;
int main(){
int n , m;
while(cin >> n >> m){
map<int , int> mp;
int f[205];
for(int i = 0; i < n ; i++){
int temp;
cin >> temp;
f[i] = temp;
mp[temp]++;
}
for(int i = 0; i < n ; i++){
if(mp[f[i]] <= 1)
cout << "BeiJu" << endl;
else
cout << mp[f[i]] - 1 << endl;
}
}
...
登录后发布评论
暂无评论,来抢沙发