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