摘要:
DescriptionFor a tree, which nodes and edges are all weighted, the ratio of it is calculated according to the following equation.Given a complete grap... 阅读全文
posted @ 2013-08-14 20:33
Oyking
阅读(353)
评论(0)
推荐(0)
摘要:
DescriptionSheryl works for a software company in the country of Brada. Her job is to develop a Windows operating system. People in Brada are incredibly conservative. They even never use graphical monitors! So Sheryl’s operating system has to run in text mode and windows in that system are formed by 阅读全文
posted @ 2013-08-14 18:41
Oyking
阅读(1220)
评论(0)
推荐(0)
摘要:
There arenpsychos standing in a line. Each psycho is assigned a unique integer from1ton. At each step every psycho who has an id greater than the psycho to his right (if exists) kills his right neighbor in the line. Note that a psycho might kill and get killed at the same step.You're given the i 阅读全文
posted @ 2013-08-14 15:48
Oyking
阅读(886)
评论(0)
推荐(0)
摘要:
Yaroslav has an arrayp = p1, p2, ..., pn(1 ≤ pi ≤ n), consisting ofndistinct integers. Also, he hasmqueries:Query numberiis represented as a pair of integersli,ri(1 ≤ li ≤ ri ≤ n).The answer to the queryli, riis the number of pairs of integersq,w(li ≤ q, w ≤ ri)such thatpqis the divisor ofpw.Help Ya 阅读全文
posted @ 2013-08-14 12:26
Oyking
阅读(927)
评论(0)
推荐(1)

浙公网安备 33010602011771号