随笔分类 -  二分法 求解

摘要:Problem DescriptionThis problem is based on an exercise of David Hilbert, who pedagogically suggested that one study the theory of4n+1numbers. Here, we do only a bit of that.AnH-number is a positive number which is one more than a multiple of four: 1, 5, 9, 13, 17, 21,... are theH-numbers. For this 阅读全文
posted @ 2013-10-26 11:06 persistent codeants 阅读(165) 评论(0) 推荐(0)
摘要:Problem DescriptionFarmer 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,000) that he will need to spend each day over the nextN(1 ≤N≤ 100,000) days.FJ wants to create 阅读全文
posted @ 2013-10-21 15:31 persistent codeants 阅读(219) 评论(0) 推荐(0)
摘要:Problem 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 river with a rock at the start and another rock at the end,Lunits away from the start (1 ≤L≤ 1,0 阅读全文
posted @ 2013-10-21 14:57 persistent codeants 阅读(195) 评论(0) 推荐(0)
摘要:Problem DescriptionWhen 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 walls and then heated, it expands and takes the shape of a circular segment, the original rod being th 阅读全文
posted @ 2013-10-19 15:12 persistent codeants 阅读(252) 评论(0) 推荐(0)
摘要: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 my party and each of them gets a piece of pie. This should be one piece of one pie, not several sm 阅读全文
posted @ 2013-10-19 12:33 persistent codeants 阅读(263) 评论(0) 推荐(0)