Problem Description 李华是一个十分聪明的同学,据说他的智商高达250多,但是今天他竟然被一道题给卡住了,是什么题呢?题目内容为: 给你n个数,然后让你判断能否用这n个数中的一些数,使他们的和组成所有的非负…
Description Sean is trying to save a large file to a USB flash drive. He has n USB flash drives with capacities equal to a1, a2, ..., an megabytes. The file size is equal to m megabytes. Find the minimum number of USB flash drives needed to write Seans …
Description Amr loves Geometry. One day he came up with a very interesting problem. Amr has a circle of radius r and center in point (x, y). He wants the circle center to be in new position (x, y). In one step Amr can put a pin to the border of the circl…
Problem DescriptionAlex has two sequences a_1,a_2,...,a_na1,a2,...,an and b_1,b_2,...,b_mb1,b2,...,bm. He wants find a longest common subsequence that consists of consecutive values in increasing order. InputThere are mu…