Pipeline(codeforces)
来源:互联网 发布:fc2免费视频域名 编辑:程序博客网 时间:2024/05/17 08:17
Vova, the Ultimate Thule new shaman, wants to build a pipeline. Asthere are exactly
A splitter is a construction that consists of one input (it can beconnected to a water pipe) and
Vova has one splitter of each kind:with
Vova needs the pipeline to haveexactly
The first line contains two space-separatedintegers
Please, do not use the
Print a single integer — the minimum number of splitters needed tobuild the pipeline. If it is impossible to build a pipeline withthe given splitters, print -1.
4 3
2
5 5
1
8 4
-1
#include<stdio.h>
#include <iostream>
#include <string>
#include <string.h>
#include <algorithm>
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <map>
using namespace std;
typedef long long ll;
int main(){
return 0;
}
- Pipeline(codeforces)
- CodeForces 287B Pipeline(二分)
- CodeForces 287B Pipeline(二分)
- [二分]codeforces Pipeline
- CodeForces 287B Pipeline
- pipeline的相关解释(instruction pipeline)
- Codeforces Round #176 (Div. 2)B pipeline
- Redis管道(pipeline)
- 爬虫(2):Pipeline
- Redis管道(pipeline)
- Pipeline
- PIpeline
- pipeline
- Pipeline
- Codeforces Round #176 (Div. 2) B. Pipeline//二分查找
- pipeline(管道)设计模式
- 3D流水线(pipeline)
- pipeline之stage(一)
- hdu(1515)
- hdu(1257)
- hdu(1711)
- hdu(1213)
- hdu(1272)
- Pipeline(codeforces)
- hdu(4514)
- poj(1988)
- hdu(4515)
- hdu(4501)
- hdu(4526)
- PAT Basic Level 1009. 说反话(20)
- hdu(4502)
- hdu(4517)