
二分
偷吃了老鼠的土豆
戒骄戒躁,脚踏实地,坚持不懈,愈挫愈勇。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2017 WF e
暑假学校培训再一次做这个题;一开始还是以为c可以借解出来,但是困于 ∑di/(si+c)=t这个式子不知道如何解,就参考了一下博客,知道这道题用二分查找。#include <iostream>#include <stdio.h>using namespace std;int main(){ int n,t; double a[1005],b[1005...原创 2018-03-23 00:18:20 · 226 阅读 · 0 评论 -
POJ-3258-River Hopscotch (二分答案)
题目:http://poj.org/problem?id=3258Every 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 takes place ...原创 2018-08-09 21:34:15 · 227 阅读 · 0 评论 -
Median(poj-3579)-二分答案
题目:http://poj.org/problem?id=3579Given N numbers, X1, X2, ... , XN, let us calculate the difference of every pair of numbers: ∣Xi - Xj∣ (1 ≤ i < j ≤ N). We can get C(N,2) differences through this wo...原创 2018-08-10 14:25:48 · 247 阅读 · 0 评论 -
Pie(poj -3122)(二分答案)
题目:http://poj.org/problem?id=3122 My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my frien...原创 2018-08-10 16:05:27 · 2309 阅读 · 1 评论 -
Information Disturbing (树形dp)hdu3586
题目:In the battlefield , an effective way to defeat enemies is to break their communication system. The information department told you that there are n enemy soldiers and their network which have n...原创 2018-08-16 14:34:04 · 153 阅读 · 0 评论 -
HDU4614--线段树+二分
题目:Vases and Flowers Alice is so popular that she can receive many flowers everyday. She has N vases numbered from 0 to N-1. When she receive some flowers, she will try to put them in the vases, on...原创 2018-09-05 16:56:04 · 197 阅读 · 0 评论