二分
文章平均质量分 80
free-dancer
i am growing~!
展开
-
Strange fuction 三分
点击打开链接 Problem Description Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 Can you find the minimum value when x is between 0 and 100. Input The first line of the input c原创 2017-08-10 22:12:38 · 296 阅读 · 0 评论 -
Prime Gap
Description The sequence of n − 1 consecutive composite numbers (positive integers that are not prime and not equal to 1) lying between two successive prime numbers p and p + n is called a prime原创 2017-08-13 16:29:33 · 534 阅读 · 0 评论 -
xpanding Rods
Description When a thin rod of length L is heated n degrees, it expands to a new length L' = (1+n*C)*L, where C is the coefficient of heat expansion. When a thin rod is mounted on two solid wall原创 2017-08-13 16:23:50 · 267 阅读 · 0 评论 -
搜索-O - 切绳子问题(二分)
//题意:有n条绳子,分成k段相等的,问能使得最长为多长 思路:经典二分 输入n 段绳子的完了之后,计算 k段平均长度,在0-sum/k, 之间二分,如果分的绳子多余k 段的话,说明绳子太短了,需要调整二分区间。 还有 这个题的输入输出 要用c 的方法。(keng) #if 0 #include #include #include #define exp 1e-8 using原创 2017-05-25 08:50:09 · 2762 阅读 · 0 评论 -
Aggressive cows(最大化最小值问题)
点击打开链接 Problem Description Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi <= 1,000,000,000).原创 2017-08-11 20:09:37 · 667 阅读 · 0 评论 -
Monthly Expense(最大化最小值问题)
点击打开链接 Problem Description 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 mon原创 2017-08-11 20:18:56 · 1113 阅读 · 0 评论 -
Copying Books(最大化最小值问题)
点击打开链接 Problem Description Before the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so called scribers. The scriber had be原创 2017-08-11 20:45:12 · 611 阅读 · 2 评论 -
Pie
点击打开链接 Problem 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 co原创 2017-08-10 22:24:55 · 323 阅读 · 0 评论 -
Can you solve this equation?
点击打开链接 Problem Description 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. Input The first line of the inp原创 2017-08-10 22:17:15 · 207 阅读 · 0 评论 -
Drying
Problem Description 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原创 2017-08-13 16:37:32 · 338 阅读 · 0 评论