二分搜索
文章平均质量分 75
Never_Say-Never
这个作者很懒,什么都没留下…
展开
-
hdoj2199Can you solve this equation?
Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky. InputThe first line of the input conta原创 2016-07-27 18:56:53 · 248 阅读 · 0 评论 -
zzuli oj 1919(序列分段求和)(二分)
Description晴天想把一个包含n个整数的序列a分成连续的若干段,且和最大的一段的值最小,但他有强迫症,分的段数不能超过m段,然后他就不会分了。。。他想问你这个分出来的和最大的一段的和最小值是多少?Input第一行输入一个整数t,代表有t组测试数据。每组数据第一行为两个整数n,m分别代表序列的长度和最多可分的段数。接下来一行包含n个整数表示序列。0原创 2016-08-18 15:27:03 · 666 阅读 · 0 评论 -
Codeforces Round #218 Hamburgers
DescriptionPolycarpus loves hamburgers very much. He especially adores the hamburgers he makes with his own hands. Polycarpus thinks that there are only three decent ingredients to make hamburgers原创 2016-07-27 21:19:56 · 191 阅读 · 0 评论 -
CodeForces - 274A - k-Multiple Free Set
DescriptionA k-multiple free set is a set of integers where there is no pair of integers where one is equal to another integer multiplied by k. That is, there are no two integers x and y(x y) fr原创 2016-07-27 21:14:40 · 300 阅读 · 0 评论 -
hdoj1969Pie
Problem DescriptionMy 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 friends are coming to原创 2016-07-27 20:50:18 · 250 阅读 · 0 评论 -
poj3258River Hopscotch
DescriptionEvery 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 on a long, straight原创 2016-07-27 20:25:42 · 359 阅读 · 0 评论 -
UVA 10566 Crossed Ladders (几何+二分)
DescriptionA narrow street is lined with tall buildings. An x foot long ladder is rested at the base of the building on the right side of the street and leans on the building on the left side. A y原创 2016-07-27 20:12:24 · 534 阅读 · 0 评论 -
hdoj4004The Frog's Games
Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog ath原创 2016-07-27 20:04:45 · 248 阅读 · 0 评论 -
hdoj2141Can you find it?
Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula Ai+Bj+C原创 2016-07-27 19:40:59 · 210 阅读 · 0 评论 -
hdoj1551Cable master(二分)
Problem DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever.原创 2016-07-27 19:16:36 · 263 阅读 · 0 评论 -
Codeforces Round #367 (Div. 2) B - Interesting drink
Vasiliy likes to rest after a hard work, so you may often meet him in some bar nearby. As all programmers do, he loves the famous drink "Beecola", which can be bought in n different shops in the cit原创 2016-08-12 15:57:20 · 255 阅读 · 0 评论