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