摘要:
Problem DescriptionYou are given a sequence ofnintegersa1, a2, ... , anin non-decreasing order. In addition to that, you are given several queries consisting of indicesiandj(1 ≤ i ≤ j ≤ n). For each query, determine the most frequent value among the integersai, ... , aj.InputThe input consists of se 阅读全文
posted @ 2014-01-20 17:16
persistent codeants
阅读(499)
评论(0)
推荐(0)
摘要:
Problem DescriptionAstronomers often examine star maps where stars are represented by points on a plane and each star has Cartesian coordinates. Let the level of a star be an amount of the stars that are not higher and not to the right of the given star. Astronomers want to know the distribution of 阅读全文
posted @ 2014-01-20 14:33
persistent codeants
阅读(750)
评论(0)
推荐(0)

浙公网安备 33010602011771号