Codeforces Round #381 (Div. 2) Alyona and mex
来源:互联网 发布:java多线程调用单例 编辑:程序博客网 时间:2024/05/17 03:06
题目地址:http://codeforces.com/contest/740/problem/C
xjb构造
#include"bits/stdc++.h"using namespace std;int main(){ int n, m; cin >> n >> m; int ans = 2e9; int l, r; for(int i = 1; i <= m; i ++){ scanf("%d%d", &l, &r); ans = min(ans, r - l + 1); } cout << ans << endl; for(int i = 0; i < n; i ++){ printf("%d ", i % ans); } cout << endl; return 0;}
0 0
- Codeforces Round #381 (Div. 2)C - Alyona and mex
- Codeforces Round #381 (Div. 2) C. Alyona and mex
- Codeforces Round #381 (Div. 2)C. Alyona and mex
- Codeforces Round #381 (Div. 2) Alyona and mex
- Codeforces Round #381 (Div. 2)-C. Alyona and mex
- Codeforces Round #381 (Div. 1) A. Alyona and mex
- Codeforces Round #358 (Div. 2) B. Alyona and Mex
- Codeforces Round #358 (Div. 2) B. Alyona and Mex
- Codeforces Round #358 (Div. 2) B. Alyona and Mex
- Codeforces Round #358 (Div. 2) B. Alyona and Mex【水题】
- Codeforces Round #358 (Div. 2) B. Alyona and Mex 水题
- Codeforces Round #381 (Div. 2) C. Alyona and mex(思维)
- Codeforces Round #381 (Div. 2) C. Alyona and mex(模拟)
- Codeforces Round #381 (Div. 2)C. Alyona and mex(构造题,好题)
- Codeforces Round #381 (Div. 2) C. Alyona and mex 贪心+构造
- Codeforces Round #381 (Div. 2) C. Alyona and mex(思维)
- Codeforces Round #381 (Div. 2) C Alyona and mex (构造)
- Codeforces Round #381C. Alyona and mex
- 获取版本号 版本名称
- 使用Shell脚本查找程序对应的进程ID,并杀死进程
- Java学习路线
- Qt连接SqlSever2014数据库教程(非dsn法)手把手
- springmvc+mybatis框架下,写通用的操作,删除等的操作
- Codeforces Round #381 (Div. 2) Alyona and mex
- ios 后台无限心跳实现:GCDAsyncSocket使用的 Voip、NSTimer、10分钟超长链接
- 一个项目流程(从前端到后台)服务器相关
- Footer
- java 使用xsd文件 校验 xml文件
- OpenNLP入门实验
- 浅谈LDAP服务
- hadoop输入分片计算(Map Task个数的确定) - 有无之中
- ftrace学习资料整理