文章标题
来源:互联网 发布:效果图设计软件 编辑:程序博客网 时间:2024/06/10 20:02
include
include
include
using namespace std;
int n,m,q,a[199999],f[199999];
int main(){
scanf(“%d%d%d”,&n,&m,&q);
for(int i=1;i<=m;i++) scanf(“%d”,&a[i]),a[i];
while(q–){
int l,r;
scanf(“%d%d”,&l,&r);
for(int i=l;i<=r;i++) f[a[i]]++; for(int i=1;i<=n;i++) if(!f[i]&&!f[i+1]) { printf("%d %d\n",i,i+1);break; } for(int i=l;i<=r;i++) f[a[i]]=0;}
}
阅读全文
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- Xcode 9.0 报错, Safe Area Layout Guide Before IOS 9.0
- Arduino+W5100+新浪云SAE(开发语言:Python)+微信公众平台(实现LED控制)
- Java学习之——构造方法得理解
- android adt自带eclipse无法设置ndk路径
- 数人云|90%产品服务化,细说豆瓣的5年变革之路
- 文章标题
- 在CodeWarrior中用MemoryBanker优化代码
- 测试常用工具及测试一般流程
- c语言文件输入输出
- RTSP协议消息格式及SDP协议解析
- 机器学习算法之KNN识别mnist数据集
- 关于卡方在离散型单特征变量分析中的应用
- 工作日记2017.09.29 BigDecimal的8种舍入模式
- Apache Commons 系列简介 之 Pool