二分贪心
尹_某人
这个作者很懒,什么都没留下…
展开
-
二分贪心 B
题目: You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them. Inpu原创 2017-05-02 22:57:16 · 444 阅读 · 0 评论 -
二分贪心 E
题目: 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). His C (2 <= C <= N)原创 2017-05-02 22:59:05 · 862 阅读 · 0 评论 -
二分贪心 U
题目: Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. "Look, I've built a wall!", he tells his older sister Alice. "Nah, you原创 2017-05-02 23:01:15 · 285 阅读 · 0 评论 -
二分贪心 T
题目: A factory produces products packed in square packets of the same height h and of the sizes 1*1, 2*2, 3*3, 4*4, 5*5, 6*6. These products are always delivered to customers in the square parcels of原创 2017-05-02 23:10:53 · 276 阅读 · 0 评论 -
二分贪心 D
题目: 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 fol原创 2017-05-02 23:20:37 · 334 阅读 · 0 评论