当前位置:网站首页>Pat 1121 damn single (25 points) set
Pat 1121 damn single (25 points) set
2022-07-01 14:31:00 【Python ml】
#include <iostream>
#include <vector>
#include <set>
#include <map>
using namespace std;
int main() {
int n,m,temp,cnt=0;
cin>>n;
map<int,int>mapp;
for(int i=0;i<n;i++){
int a,b;
cin>>a>>b;
mapp[a]=b;
mapp[b]=a;
}
cin>>m;
set<int>s,t;
vector<int> guest(m);
for(int i=0;i<m;i++){
scanf("%d",&guest[i]);
s.insert(guest[i]);
}
for(int i=0;i<m;i++){
if(s.find(mapp[guest[i]])==s.end()) // It's a single dog
t.insert(guest[i]);
cout<<t.size()<<endl;
for(auto it=t.begin();it!=t.end();it++){
if(it==t.begin())printf("%05d",*it);
else printf(" %05d",*it);
}
return 0;
}
边栏推荐
- SWT / anr problem - how to open binder trace (bindertraces) when sending anr / SWT
- 建立自己的网站(14)
- C 语言进阶
- Provincial election + noi Part VIII fraction theory
- Why did you win the first Taosi culture award of 20000 RMB if you are neither a top R & D expert nor a sales Daniel?
- [repair version] imitating the template of I love watching movies website / template of ocean CMS film and television system
- sqlilabs less-8
- 【修复版】仿我爱看电影网站模板/海洋CMS影视系统模板
- "National defense seven sons" funding soared, with Tsinghua reaching 36.2 billion yuan, ranking second with 10.1 billion yuan. The 2022 budget of national colleges and universities was made public
- Phpcms realizes the direct Alipay payment function of orders
猜你喜欢
![[R language data science]: common evaluation indicators of machine learning](/img/c8/dbfb041fa72799fae1892fe8ac0050.png)
[R language data science]: common evaluation indicators of machine learning

Après avoir été licencié pendant trois mois, l'entrevue s'est effondrée et l'état d'esprit a commencé à s'effondrer.

Details of appium key knowledge

TDengine 连接器上线 Google Data Studio 应用商店

leetcode622. Design cycle queue (C language)

Minimum spanning tree and bipartite graph in graph theory (acwing template)

Fundamentals of C language

In depth cooperation | Taosi data cooperates with changhongjia Huawei customers in China to provide tdengine with powerful enterprise level products and perfect service guarantee

2022-2-15 learning the imitation Niuke project - post in Section 2

2022. Let me take you from getting started to mastering jetpack architecture components - lifecycle
随机推荐
Phpcms realizes the direct Alipay payment function of orders
Go integrates logrus to realize log printing
逻辑是个好东西
30 Devops interview questions and answers
【IoT毕设.上】STM32+机智云AIoT+实验室安全监控系统
Research Report on the development trend and competitive strategy of the global chemical glassware industry
Opencv mat class
算网融合赋能行业转型,移动云点亮数智未来新路标
So programmers make so much money doing private work? It's really delicious
Research Report on the development trend and competitive strategy of the global navigation simulator industry
微服务开发步骤(nacos)
Provincial election + noi Part VIII fraction theory
Vnctf2022 open web gocalc0
Research Report on the development trend and competitive strategy of the global display filter industry
TexStudio使用教程
Research Report on the development trend and competitive strategy of the global diamond suspension industry
【商业终端仿真解决方案】上海道宁为您带来Georgia介绍、试用、教程
使用 Lambda 函数URL + CloudFront 实现S3镜像回源
被裁三个月,面试到处碰壁,心态已经开始崩了
Provincial election + noi Part XI others