摘要:
In a certain course, you take n tests. If you get ai out of bi questions correct on test i, your cumulative average is defined to be . Given your test 阅读全文
摘要:
Farmer John has decided to reward his cows for their hard work by taking them on a tour of the big city! The cows must decide how best to spend their 阅读全文
摘要:
有N个小松鼠,它们的家用一个点x,y表示,两个点的距离定义为:点(x,y)和它周围的8个点即上下左右四个点和对角的四个点,距离为1。现在N个松鼠要走到一个松鼠家去,求走过的最短距离。 Input 第一行给出数字N,表示有多少只小松鼠。0<=N<=10^5下面N行,每行给出x,y表示其家的坐标。-10 阅读全文
摘要:
David the Great has just become the king of a desert country. To win the respect of his people, he decided to build channels all over his country to b 阅读全文
摘要:
A domino is a flat, thumbsized tile, the face of which is divided into two squares, each left blank or bearing from one to six dots. There is a row of 阅读全文
摘要:
Some major cities have subway systems in the form of a tree, i.e. between any pair of stations, there is one and only one way of going by subway. More 阅读全文
该文被密码保护。 阅读全文