二分搜索练习题
文章平均质量分 65
geekword
无无无
展开
-
A - Can you find it?
Description 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.Inp转载 2016-07-21 19:35:19 · 238 阅读 · 0 评论 -
B - Can you solve this equation?
Description 现在,给出等式8* X^4+ 7* X^3+ 2* X^2+ 3 * X +6= Y,请找出他在0和100之间的解(包含0和100)。 现在,请你试试运气。。。。Input输入的第一行包含一个整数T(1 <= T <=100),表示测试用例的数目。接下来T个数字,每一行都有一个实数Y(abs(Y)<=10^10);Output 对于每个测试用例,如果有解,你应该输出一个原创 2016-07-21 19:38:28 · 1049 阅读 · 0 评论 -
C - Sacrament of the sum
Description — The Brother of mine, the Head of Monastic Order wants to know tomorrow about the results long-term researches. He wants to see neither more nor less than the Summering Machine! Even more原创 2016-07-21 19:41:41 · 439 阅读 · 0 评论 -
D - Pie
Description 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 friends are coming to my party原创 2016-07-21 19:45:13 · 367 阅读 · 0 评论 -
E - 4 Values whose Sum is 0
Description 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原创 2016-07-21 19:48:25 · 388 阅读 · 0 评论