摘要: DescriptionWindy hasNballs of distinct weights from 1 unit toNunits. Now he tries to label them with 1 toNin such a way that:No two balls share the same label.The labeling satisfies several constrains like "The ball labeled withais lighter than the one labeled withb".Can you help windy to 阅读全文
posted @ 2013-04-03 12:45 Tamara.c 阅读(170) 评论(0) 推荐(0) 编辑
摘要: DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, D implies that A < B, B < C and C < D. in this problem, we will give you a set of re 阅读全文
posted @ 2013-04-03 12:38 Tamara.c 阅读(121) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course.Farmer John ordered a high speed connection for his farm and is going to share his connectivity with the other farmers. T 阅读全文
posted @ 2013-04-03 12:34 Tamara.c 阅读(165) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopian government is aware of this problem. They're planning to build some highways so that it will be possible to drive between any pair of 阅读全文
posted @ 2013-04-03 12:33 Tamara.c 阅读(133) 评论(0) 推荐(0) 编辑
摘要: DescriptionAdvanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are used for vegetable delivery, other for furniture, or for bricks. The company has its own code describing each type of a truck. The code is simply a string of exactly seven lowercase letters (each letter on each 阅读全文
posted @ 2013-04-03 12:31 Tamara.c 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Problem 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 e 阅读全文
posted @ 2013-04-03 09:15 Tamara.c 阅读(154) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionJohn are playing with blocks. There are N blocks (1 <= N <= 30000) numbered 1...N。Initially, there are N piles, and each pile contains one block. Then John do some operations P times (1 <= P <= 1000000). There are two kinds of operation:M X Y : Put the whole pile conta 阅读全文
posted @ 2013-04-03 09:01 Tamara.c 阅读(133) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate theater and, most of all, Antique Comedies. They have printed invitation cards with all the necessary information and with the programme. 阅读全文
posted @ 2013-04-03 08:39 Tamara.c 阅读(165) 评论(0) 推荐(0) 编辑