上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: On every June 1st, the Children's Day, there will be a game named "crashing balloon" on TV. The rule is very simple. On the ground there are 100 labe... 阅读全文
posted @ 2014-03-23 19:29 chen2013 阅读(192) 评论(0) 推荐(0)
摘要: Problem DescriptionAs a poor, tuition-ridden student, you've decided to take up a part time job as a paperboy/papergirl.You've just been handed your p... 阅读全文
posted @ 2014-03-22 18:55 chen2013 阅读(360) 评论(0) 推荐(0)
摘要: You are given a chessboard made up of N squares by N squares with equal size. Some of the squares are colored black, and the others are colored white. Please write a program to calculate the number of rectangles which are completely made up of white squares. InputThere are multiple test cases. Each. 阅读全文
posted @ 2014-03-21 19:40 chen2013 阅读(318) 评论(0) 推荐(0)
摘要: DescriptionFarmer John's N (1 ≤ N ≤ 10,000) cows are lined up to be milked in the evening. Each cow has a unique "grumpiness" level in the range 1...100,000. Since grumpy cows are more likely to damage FJ's milking equipment, FJ would like to reorder the cows in line so they are li 阅读全文
posted @ 2014-03-17 16:32 chen2013 阅读(289) 评论(0) 推荐(0)
摘要: DescriptionCompared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb in his ho... 阅读全文
posted @ 2014-03-13 11:35 chen2013 阅读(273) 评论(0) 推荐(0)
摘要: DescriptionGiven a series of n numbers a1, a2, ..., an, the partial sum of the numbers is defined as the sum of ai, ai+1, ..., aj.You are supposed to calculate how many partial sums of a given series of numbers could be divided evenly by a given number m.InputThere are multiple test, each contains 2 阅读全文
posted @ 2014-03-12 16:30 chen2013 阅读(242) 评论(0) 推荐(0)
摘要: Description There are n single boys and m single girls. Each of them may love none, one or several of other people unrequitedly and one-sidedly. For the coming q days, each night some of them will come together to hold a single party. In the party, if someone loves all the others, but is not loved b 阅读全文
posted @ 2014-03-11 13:33 chen2013 阅读(361) 评论(0) 推荐(0)
摘要: DescriptionGiven N stations, you want to carry goods from station 1 to station N. Among these stations, we use M tubes to connect some of them. Each t... 阅读全文
posted @ 2014-03-10 22:55 chen2013 阅读(247) 评论(0) 推荐(0)
摘要: Description小 希和Gardon在玩一个游戏:对一个N*M的棋盘,在格子里放尽量多的一些国际象棋里面的“车”,并且使得他们不能互相攻击,这当然很简单,但是 Gardon限制了只有某些格子才可以放,小希还是很轻松的解决了这个问题(见下图)注意不能放车的地方不影响车的互相攻击。 所以现在Gardon想让小希来解决一个更难的问题,在保证尽量多的“车”的前提下,棋盘里有些格子是可以避开的,也就是说,不在这些格子上放车,也可以保证尽量多的“车”被放下。但是某些格子若不放子,就无法保证放尽量多的“车”,这样的格子被称做重要点。Gardon想让小希算出有多少个这样的重要点,你能解决这个问题么?In 阅读全文
posted @ 2014-03-04 12:38 chen2013 阅读(858) 评论(0) 推荐(0)
摘要: DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the following properties. There is exactly one node, called the root, to which no directed edges point. Every node except 阅读全文
posted @ 2014-03-04 11:23 chen2013 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页