随笔分类 -  Sicily

摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionWell, how do you feel about mobile phone? Your answer would probably be something like that “It’s so convenient and benefits people a lot”. However, if you ask Merlin this question on the New Year’s Eve, he will definitely answer “What 阅读全文
posted @ 2013-09-25 23:11 Jolin123 阅读(337) 评论(0) 推荐(0)
摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionMirko has found N chains in his attic. Each chain consists of some number of links, where each link has at most two adjacent links. Each link can be opened or closed, so it is possible to separate chains or connect them into a longer c 阅读全文
posted @ 2013-09-23 12:56 Jolin123 阅读(353) 评论(0) 推荐(1)
摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionAfter realizing that there is much money to be made in software development, Farmer John has launched a small side business writing short programs for clients in the local farming industry. Farmer John's first programming task seem 阅读全文
posted @ 2013-09-22 19:48 Jolin123 阅读(465) 评论(0) 推荐(1)
摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionEven in times of an economic crisis, people in Byteland still like to participate in lotteries. With a bit of luck, they might get rid of all their sorrows and become rich.The most popular lottery in Byteland consists of m rounds. In e 阅读全文
posted @ 2013-09-21 23:15 Jolin123 阅读(329) 评论(0) 推荐(0)
摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MB , Framework JudgeDescriptiontemplate class Queue {public: Queue();// construct an empty queue ~Queue()// destructor Queue(const Queue &rhs); const Queue & operator(const Queue &rhs) bool empty()const; bool full()const; int size()cons 阅读全文
posted @ 2013-09-19 20:41 Jolin123 阅读(411) 评论(0) 推荐(0)
摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionMike has recently been visited by extraterrestrials from planet X3, where everyone's name is a positive integer. All residents of the planet know each other. Two X3-ians calculate the strength of their friendship by converting thei 阅读全文
posted @ 2013-09-19 17:47 Jolin123 阅读(341) 评论(0) 推荐(0)
摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionThe number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds all prime palindromes in the range of two supplied numbers a and 阅读全文
posted @ 2013-09-18 18:08 Jolin123 阅读(508) 评论(0) 推荐(0)
摘要:题目:ConstraintsTime Limit: 1 secs, Memory Limit: 256 MB , Special JudgeDescriptionThere are n children in a country marked by integers from 1 to n.They often fight with each other. For each pair of child A and child B, either A beats B or B beats A. It is not possible that both A beats B and B beats 阅读全文
posted @ 2013-09-17 16:53 Jolin123 阅读(288) 评论(0) 推荐(0)
摘要:题目:DescriptionIt's Bessie's feeding time, and Farmer John is trying to decide where to put her. FJ has a farm that comprises W x H (1 2 #include 3 using namespace std; 4 5 #define MAX 750 6 7 struct Point{ 8 int x,y; 9 Point(int i,int j){10 x=i;11 y=j;12 }13 };14 15 v... 阅读全文
posted @ 2013-09-17 14:26 Jolin123 阅读(381) 评论(0) 推荐(0)
摘要:题目:DescriptionWindbreaker was planning to send his friends some necklaces as New Year gifts. To show sincerity ,he decided to make the necklaces all by himself. He bought some kinds of pearls and each kind of pearls has a different color from others. He wanted to make each necklace consisted of M pe 阅读全文
posted @ 2013-09-16 23:42 Jolin123 阅读(396) 评论(0) 推荐(0)