摘要: 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) 编辑
摘要: DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dirty and full of tourists' sunscreen, he wants to avoid swimming and instead reach her by jumping.Unfortunately Fio 阅读全文
posted @ 2013-03-16 20:15 Tamara.c 阅读(157) 评论(0) 推荐(0) 编辑
摘要: DescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination at a time that is BEFORE you entered the wormhole! Each of FJ's farms comprisesN(1 ≤N≤ 500) fields co 阅读全文
posted @ 2013-03-16 20:06 Tamara.c 阅读(211) 评论(0) 推荐(0) 编辑
摘要: DescriptionSeveral currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange operations only with these currencies. There can be several points specializing in the same pair of currencies. Each point has its own ex 阅读全文
posted @ 2013-03-16 19:58 Tamara.c 阅读(198) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-wielding psychopaths, hippies, and other terrors on their quest to find the exit.One popular maze-walking strategy guarantees that the visitor will ev 阅读全文
posted @ 2013-03-16 19:50 Tamara.c 阅读(147) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN(0 ≤N≤ 100,000) on a number line and the cow is at a pointK(0 ≤K≤ 100,000) on the same number line. Farmer John has two modes of transportation: walking and teleporting 阅读全文
posted @ 2013-03-16 19:44 Tamara.c 阅读(141) 评论(0) 推荐(0) 编辑
摘要: DescriptionWFF 'N PROOF is a logic game played with dice. Each die has six faces representing some subset of the possible symbols K, A, N, C, E, p, q, r, s, t. A Well-formed formula (WFF) is any string of these symbols obeying the following rules:p, q, r, s, and t are WFFsifwis a WFF, Nwis a WFF 阅读全文
posted @ 2013-03-16 19:42 Tamara.c 阅读(155) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?Here is a sample tiling of a 2x17 rectangle.InputInput is a sequence of lines, each line containing an integer number 0 <= n <= 250.OutputFor each line of input, output one integer number in a separate line giving the 阅读全文
posted @ 2013-03-16 19:37 Tamara.c 阅读(330) 评论(0) 推荐(0) 编辑
摘要: DescriptionThere are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your university believe in.You know that there are n students in your university (0 < n <= 50000). It i 阅读全文
posted @ 2013-03-16 19:32 Tamara.c 阅读(151) 评论(0) 推荐(0) 编辑