摘要:
Description There is a string S.S only contain lower case English character.(10≤length(S)≤1,000,000)How many substrings there are that contain at leas 阅读全文
摘要:
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille 阅读全文
摘要:
Description Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and r 阅读全文
摘要:
Description 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 阅读全文
摘要:
Description Given n points (1 dimensional) and q segments, you have to find the number of points that lie in each of the segments. A point pi will lie 阅读全文
摘要:
Description MG is a lucky boy. He is always be able to find gold from underground. It is known that the gold is a sequence with nelements, which has i 阅读全文
摘要:
Description Compared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb in his h 阅读全文