随笔分类 -  二分

摘要:A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Wri 阅读全文
posted @ 2017-12-03 18:12 小小超plus 阅读(141) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-12-03 18:11 小小超plus 阅读(236) 评论(0) 推荐(0)
摘要:You are going out for a walk, when you suddenly encounter N monsters. Each monster has a parameter called health, and the health of the i-th monster i 阅读全文
posted @ 2017-12-03 18:08 小小超plus 阅读(334) 评论(0) 推荐(0)
摘要:In a certain course, you take n tests. If you get ai out of bi questions correct on test i, your cumulative average is defined to be . Given your test 阅读全文
posted @ 2017-12-03 18:05 小小超plus 阅读(204) 评论(0) 推荐(0)