摘要: 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 阅读(167) 评论(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 阅读(156) 评论(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 阅读(137) 评论(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 阅读(166) 评论(0) 推荐(0) 编辑
摘要: DescriptionIf you have a date with a pretty girl in a hurry, you can ignore what I will say next.Hellisis a little bad guy in Rural Small Technical College. And the most important fact is that he is especially fond of glaring at pretty girls! And as we all know, there are some girls he favors in the 阅读全文
posted @ 2013-03-16 21:13 Tamara.c 阅读(240) 评论(0) 推荐(0) 编辑
摘要: DescriptionYou are given a figure consisting of n points in a2D-planeand m segments connecting some of them. We guarantee that any two segments don't share points except their ends and there's no more than one segment between the same pair of points. Please count the total number of triangle 阅读全文
posted @ 2013-03-16 21:00 Tamara.c 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given n points (xi, yi) (i = 1, 2 ... n) in a plane, where all xiwill be distinct. After connecting the n points with staight lines in order from the leftmost point to the rightmost point, the area below the lines is called coverage. Now, it's your job to calculate the maximum coverage area, if 阅读全文
posted @ 2013-03-16 20:45 Tamara.c 阅读(151) 评论(0) 推荐(0) 编辑
摘要: DescriptionChannel is a very important part of a digital communication system.The characteristics of the channel affect the performance of the whole digital communication system.The noise and interference in the real channel make the codes received different from the codes sent.The difference is gen 阅读全文
posted @ 2013-03-16 20:34 Tamara.c 阅读(204) 评论(0) 推荐(0) 编辑
摘要: DescriptionArbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US Dollar buys 0.5 British pound, 1 British pound buys 10.0 French francs, and 1 French franc buys 0.21 US dollar. 阅读全文
posted @ 2013-03-16 20:28 Tamara.c 阅读(143) 评论(0) 推荐(0) 编辑
摘要: DescriptionStockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to give your employer the tactical edge in the stock market. For maximum effect, you have to spread the rumours in the fastest possible way.Unf 阅读全文
posted @ 2013-03-16 20:22 Tamara.c 阅读(165) 评论(0) 推荐(0) 编辑