上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: Problem DescriptionYou are given a necklace consists of N beads linked as a circle. Each bead is either crystal or jade.Now, your task is:1.Choose an arbitrary position to cut it into a chain.2.Choose either direction to collect it.3.Collect all the beads in the chosen direction under the constraint 阅读全文
posted @ 2013-11-30 20:44 persistent codeants 阅读(162) 评论(0) 推荐(0)
摘要: DescriptionAn array of size n ≤ 106 is given to you. There is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves rightwards by one position. Following is an example: The array 阅读全文
posted @ 2013-11-30 10:49 persistent codeants 阅读(214) 评论(0) 推荐(0)
摘要: Problem DescriptionGiven a circle sequence A[1],A[2],A[3]......A[n]. Circle sequence means the left neighbour of A[1] is A[n] , and the right neighbour of A[n] is A[1].Now your job is to calculate the max sum of a Max-K-sub-sequence. Max-K-sub-sequence means a continuous non-empty sub-sequence which 阅读全文
posted @ 2013-11-30 10:01 persistent codeants 阅读(234) 评论(0) 推荐(0)
摘要: DescriptionThere arenpeople standing in a row. And There aremnumbers, 1.2...m. Every one should choose a number. But if two persons standing adjacent to each other choose the same number, the number shouldn't equal or less thank. Apart from this rule, there are no more limiting conditions.And yo 阅读全文
posted @ 2013-11-27 20:07 persistent codeants 阅读(165) 评论(0) 推荐(0)
摘要: DescriptionWhen it comes to theMaya Civilization, we can quickly remind of a term called the end of the world. It's not difficult to understand why we choose to believe the prophecy (or we just assume it is true to entertain ourselves) if you know the other prophecies appeared in theMaya Calenda 阅读全文
posted @ 2013-11-27 16:03 persistent codeants 阅读(187) 评论(0) 推荐(0)
摘要: DescriptionThe 2012 Europe Cup was over and Spain won the Championship. The fans of Spain want to hold some activities to celebrate. But there is a question. Some of them are the fans of F.C Barcelona and the others are Real Madrid. It is well-known that the relation of these two clubs is very bad. 阅读全文
posted @ 2013-11-27 13:19 persistent codeants 阅读(180) 评论(0) 推荐(0)
摘要: DescriptionThe European Cup final is coming. The past two World Cup winners, Spain and Italy, will contest the decider at Kiev's Olympic Stadium. Italy-Spain Euro final promises to be clash of polar opposites, so it's difficult to say which team will win.Now there areMfans in ZJU,Nof them su 阅读全文
posted @ 2013-11-26 21:32 persistent codeants 阅读(185) 评论(0) 推荐(0)
摘要: DescriptionMichael takes theDiscrete Mathematicscourse in this semester. Now it's close to the final exam, and he wants to take a complete review of this course.The whole book he needs to review hasNchapter, because of the knowledge system of the course is kinds of discrete as its name, and due 阅读全文
posted @ 2013-11-25 21:39 persistent codeants 阅读(212) 评论(0) 推荐(0)
摘要: DescriptionThere is a fire in LTR ’ s home again. The fire can destroy all the things intseconds, so LTR has to escape intseconds. But there are some jewels in LTR ’ s rooms, LTR love jewels very much so he wants to take his jewels as many as possible before he goes to the exit. Assume that theith r 阅读全文
posted @ 2013-11-24 20:48 persistent codeants 阅读(186) 评论(0) 推荐(0)
摘要: DescriptionAlice is exploring the wonderland, suddenly she fell into a hole, when she woke up, she found there areb - a+ 1 treasures labledafrombin front of her.Alice was very excited but unfortunately not all of the treasures are real, some are fake.Now we know a treasure lablednis real if and only 阅读全文
posted @ 2013-11-24 16:07 persistent codeants 阅读(226) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页