
二分
Zhangcan233
这个作者很懒,什么都没留下…
展开
-
CSU-ACM2017暑期训练5-三分 D - Toxophily HDU - 2298
题目:The recreation center of WHU ACM Team has indoor billiards, Ping Pang, chess and bridge, toxophily, deluxe ballrooms KTV rooms, fishing, climbing, and so on.We all like toxophily. Bob is原创 2017-08-01 22:43:25 · 427 阅读 · 0 评论 -
CSU-ACM2017暑假集训2-二分搜索 poj-3258- River Hopscotch
题目:Every 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 river原创 2017-07-26 13:41:40 · 318 阅读 · 0 评论 -
CSU-ACM2017暑假集训2-二分搜索 poj3104-drying
题目链接:drying题目:It is very hard to wash and especially to dry clothes in winter. But Jane is a very smart girl. She is not afraid of this boring process. Jane has decided to use a radiator to ma原创 2017-07-26 08:40:42 · 496 阅读 · 0 评论 -
CSU-ACM2017暑假集训2-二分搜索 poj-2456 Aggressive cows-最大化最小值
题目:Farmer John has built a new long barn, with N (2 His C (2 <= C <= N) cows don't like this barn layout and become aggressive towards each other once put into a stall. To prevent the cows fro原创 2017-07-25 17:03:44 · 361 阅读 · 0 评论 -
CSU-ACM2017暑假集训2-二分搜索 poj-32732 Monthly Expense
题目:Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤ moneyi ≤ 10,00原创 2017-07-25 16:53:21 · 363 阅读 · 0 评论 -
CSU-ACM2017暑假集训2-二分搜索 poj-2785-4 Values whose Sum is 0
题目:The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b + c + d = 0 . In the f原创 2017-07-25 16:35:03 · 523 阅读 · 0 评论 -
CSU-ACM2017暑假集训2-二分搜索 hdu2119 - Can you solve this equation?
题目:Now,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 contains an integer T(1原创 2017-07-25 16:25:35 · 381 阅读 · 0 评论 -
CSU-ACM2017暑假集训2-二分搜索 hdu2141- Can you find it?
题目:Give 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+Ck = X. I原创 2017-07-25 16:18:58 · 392 阅读 · 0 评论 -
CSU-ACM2017暑期训练5-三分 E - Line belt HDU - 3400
题目:In a two-dimensional plane there are two line belts, there are two segments AB and CD, lxhgww's speed on AB is P and on CD is Q, he can move with the speed R on other area on the plane.How lo原创 2017-08-01 23:16:54 · 354 阅读 · 0 评论 -
CSU-ACM2017暑期训练3-递推与递归 J - Non-boring sequences UVA - 1608
题目大意:给你一串数字序列,问你这串数字是否满足所有的连续子序列都至少存在一个元素是与子序列中所有元素都不相同的。思路:先对序列中的所有数字进行预处理,分别存下距离他左右最近的与他相同的数字的位置。这样做是为了后面递归时可以直接判断某个元素在哪一段区间是独立的。然后递归还要左右分治递归,不然会超时.......我也不知道为啥代码:#include#include#include#原创 2017-07-28 08:19:28 · 323 阅读 · 0 评论