博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
1065. 单身狗(25)
阅读量:6904 次
发布时间:2019-06-27

本文共 493 字,大约阅读时间需要 1 分钟。

#include 
#include
int couple[100000];struct rec{ int id; int notinlist;}stay[10000+1];int comp(const void*a,const void*b){ return ((struct rec*)a)->id-((struct rec*)b)->id;}int main(){ int n,m,i,j; for(i=0;i<100000;++i) couple[i]=-1; scanf("%d",&n); while(n--) { int a,b; scanf("%d %d",&a,&b); couple[a]=b;couple[b]=a; } scanf("%d",&m); for(i=0;i

转载于:https://www.cnblogs.com/xLester/p/7570391.html

你可能感兴趣的文章
服务器遇到大流量***的处理过程
查看>>
shell 必备典型脚本 30道
查看>>
java中的关键字和保留字
查看>>
Linux下的tar压缩解压缩命令详解
查看>>
python中的常用模块
查看>>
linux 学习笔记 防火墙设置
查看>>
Reverse Linked List II
查看>>
upc组队赛1 不存在的泳池【GCD】
查看>>
操作系统概念小结(1)
查看>>
计算两个日期相差年月日
查看>>
py QScrollArea
查看>>
centos 6 升级gcc
查看>>
Maatkit--Mysql的高级管理工具
查看>>
主要的开源镜像站点资源
查看>>
白酒防伪标签生产防窜货二维码制作印刷公司
查看>>
APP测试工具
查看>>
用NULL来构造string会出问题
查看>>
php转化输入日期为Unix 纪元到当前时间的秒数 日期筛选
查看>>
教程-经典Delphi教程网
查看>>
刨根问底:详解Hadoop核心架构(转载)
查看>>