摘要: 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 阅读全文
posted @ 2017-10-16 18:52 Kaiser- 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-16 18:49 Kaiser- 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 有N个小松鼠,它们的家用一个点x,y表示,两个点的距离定义为:点(x,y)和它周围的8个点即上下左右四个点和对角的四个点,距离为1。现在N个松鼠要走到一个松鼠家去,求走过的最短距离。 Input 第一行给出数字N,表示有多少只小松鼠。0<=N<=10^5下面N行,每行给出x,y表示其家的坐标。-10 阅读全文
posted @ 2017-10-16 18:47 Kaiser- 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-16 18:45 Kaiser- 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-16 18:40 Kaiser- 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-16 18:36 Kaiser- 阅读(202) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-10-16 18:31 Kaiser- 阅读(3) 评论(0) 推荐(0) 编辑