当前位置:网站首页>(simple statistics) acwing 3404 Who are your potential friends
(simple statistics) acwing 3404 Who are your potential friends
2022-06-11 23:35:00 【Age worry】
3404. Who are your potential friends
Topic link https://www.acwing.com/problem/content/3407/
subject :

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int a[210],f[210];
int main(){
int n,m;
cin>>n>>m;
for(int i=1;i<=n;i++){
scanf("%d",&a[i]);
f[a[i]]++;
}
for(int i=1;i<=n;i++){
if(f[a[i]]==1)
cout<<"BeiJu\n";
else
cout<<f[a[i]]-1<<endl;
}
return 0;
}
边栏推荐
- Research Report on development trend and competitive strategy of global customized power supply industry
- [day3 literature intensive reading] Oriental time and space interaction in tau and kappa effects
- swiper
- 【Day9 文献泛读】On the (a)symmetry between the perception of time and space in large-scale environments
- A method of relay for ultra long distance wireless transmission of low power wireless module
- Lake Shore—SuperTran-VP 连续流低温恒温器系统
- HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications
- [C language] data type storage, original code, inverse code and complement code
- Antigen products enter the family, and Chinese medical device enterprises usher in a new blue ocean
- [Day8 literature extensive reading] space and time in the child's mind: evidence for a cross dimensional symmetry
猜你喜欢

On the knowledge points of cookie attributes and the differences between webstorage and cookies?

CVPR 2022 | meta learning performance in image regression task

2022年安全员-B证理论题库及模拟考试

I2C read / write process
![[Day8 literature extensive reading] space and time in the child's mind: evidence for a cross dimensional symmetry](/img/c2/e70e7c32c5dc5554dea29cb4627644.png)
[Day8 literature extensive reading] space and time in the child's mind: evidence for a cross dimensional symmetry

2022 high place installation, maintenance and removal of simulated examination platform for operation certificate examination question bank

Jenkins基本配置

2022 safety officer-b certificate theoretical question bank and simulation test

显示商品详情【项目 商城】

2022年起重机司机(限桥式起重机)考试题模拟考试题库及模拟考试
随机推荐
mysql——find_ in_ Set usage
【Day1/5 文献精读】Speed Constancy or Only Slowness: What Drives the Kappa Effect
Are you still struggling with the gold content of PMP
抗原产品进入家庭,中国医疗器械企业迎来新蓝海
Integrate工具之Jenkins
Here we go! Dragon lizard community enters PKU classroom
队列(C语言)
Solr之基礎講解入門
Stack (C language)
How to completely modify the user name in win10 system and win11 system
Two ways of using reuqests in RF
Lake Shore - supertran continuous flow cryogenic thermostat system
Solr之基础讲解入门
Si4432 RF chip scheme typical application of data transmission of wireless communication module of Internet of things
Introduction aux bases de SOLR
Processus postgresql10
Introduction to Solr Basics
机器学习之数据处理与可视化【鸢尾花数据分类|特征属性比较】
2022年安全员-A证考题模拟考试平台操作
Handwritten simple promise