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…