二分法
文章平均质量分 84
Algobird
这个作者很懒,什么都没留下…
展开
-
codeforces #493C# Vasya and Basketball(二分upper_bound+贪心)
C. Vasya and Basketball time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasya follows a basketball game and原创 2015-01-02 19:51:08 · 785 阅读 · 0 评论 -
2014-2015 HHUC 跨年二分专题 解题报告
前言:团队内部举行的一个二分专题小测试。题目来源都是CodeForces,在写题解之前,先把二分法的核心部分写出来。 int binarySearch() { int Max = INF,Min = 0, Mid; while(Min < Max) { Mid = (Max + Min) >> 1; if(C(Mid)) // 二分的条原创 2015-01-02 18:23:34 · 492 阅读 · 0 评论 -
codeforces #479D# Long Jumps(二分upper_bound)
D. Long Jumps time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Valery is a PE teacher at a school in Berland.原创 2015-01-02 21:42:39 · 622 阅读 · 0 评论 -
codeforces #483B# Friends and Presents(二分+math)
B. Friends and Presents time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have two friends. You want to pr原创 2015-01-02 20:43:57 · 493 阅读 · 0 评论 -
codeforces #496D# Tennis Game(二分lower_bound)
D. Tennis Game time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Petya and Gena love playing table tennis. A原创 2015-01-02 18:48:44 · 536 阅读 · 0 评论 -
codeforces #484B# Maximum Value(二分lower_bound)
B. Maximum Value time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a sequence a consisting of n原创 2015-01-02 20:12:13 · 641 阅读 · 0 评论 -
POJ 3258 River Hopscotch(二分)
River Hopscotch Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8377 Accepted: 3602 Description Every year the cows hold an event featuring a peculiar ve原创 2015-05-04 19:10:06 · 649 阅读 · 1 评论