
二分搜索
文章平均质量分 61
xgogoforit
这个作者很懒,什么都没留下…
展开
-
最最简单的二分搜索
#include<bits/stdc++.h>using namespace std;#define max 1000typedef pair<int,int>p;#define INF 1e9+7#define ll long long#define eps 1e-6int main(int argc, char const *argv[]){ int a[5]={1,2原创 2016-03-28 23:29:31 · 250 阅读 · 0 评论 -
POJ 1064 切绳子 二分搜索求一个可行解
题目连接http://poj.org/problem?id=1064DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the mo原创 2016-03-28 23:40:44 · 705 阅读 · 0 评论 -
POJ 3258 小牛过河 二分搜索最大的最小值
题目连接http://poj.org/problem?id=3258DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement tak原创 2016-04-10 10:14:46 · 478 阅读 · 0 评论 -
bestcoder 86 A B C
A题目链接http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=721&pid=1001题解计算每个商店各买一个所需的最多的钱,然后和每天记录的钱比较。代码#include<iostream> #include<cstdio> #include<cstring> #include<string> #in原创 2016-08-07 19:48:09 · 325 阅读 · 4 评论 -
Cf 361div2 C [二分]
题目连接http://codeforces.com/contest/689/problem/CDescriptionBad news came to Mike’s village, some thieves stole a bunch of chocolates from the local factory! Horrible!Aside from loving sweet things, thie原创 2016-08-30 23:49:48 · 505 阅读 · 0 评论