11 2013 档案

摘要:DescriptionThe famous Ghost Busters team has decided to upgrade their Ectomobile (aka Ecto-1) with a powerful proton gun and an advanced targeting system. Egon has designed and built all the hardware which consists of ectoplasmic scanner and a proton gun that has two degrees of freedom and can autom 阅读全文
posted @ 2013-11-24 17:52 Oyking 阅读(429) 评论(0) 推荐(0)
摘要:Problem Description Doctor D. are researching for a horrific weapon. The muzzle of the weapon is a circle. When it fires, rays form a cylinder that runs through the circle verticality in both side. If one cylinder of rays touch another, there will be an horrific explosion. Originally, all circles c. 阅读全文
posted @ 2013-11-23 21:26 Oyking 阅读(219) 评论(0) 推荐(0)
摘要:DescriptionRecently in Farland, a country in Asia, a famous scientist Mr. Log Archeo has discovered ancient pyramids. But unlike those in Egypt and Central America, they have triangular (not rectangular) foundation. That is, they are tetrahedrons in mathematical sense. In order to find out some impo 阅读全文
posted @ 2013-11-23 15:18 Oyking 阅读(318) 评论(0) 推荐(0)
摘要:DescriptionUpdog is watching a plane object with a telescope. The field of vision in the telescope can be described as a circle. The center is at the origin and the radius isR. The object can be seen as a simple polygon ofNvertexes. Updog wants to know the area of the part of the object that can be 阅读全文
posted @ 2013-11-23 14:20 Oyking 阅读(519) 评论(0) 推荐(0)
摘要:DescriptionGiven one triangle and one circle in the plane. Your task is to calculate the common area of these two figures.InputThe input will contain several test cases. Each line of input describes a test case. Each test case consists of nine floating point numbers,x1,y1,x2,y2,x3,y3,x4,y4andr, wher 阅读全文
posted @ 2013-11-17 22:54 Oyking 阅读(568) 评论(0) 推荐(0)
摘要:DescriptionThis is back in the Wild West where everybody is fighting everybody. In particular, there are n cowboys, each with a revolver. These are rather civilized cowboys, so they have decided to take turns firing their guns until only one is left standing. Each of them has a given probability of 阅读全文
posted @ 2013-11-16 21:03 Oyking 阅读(690) 评论(0) 推荐(0)
摘要:DescriptionYou are given N circles and expected to calculate the area of the union of the circles !InputThe first line is one integer n indicates the ... 阅读全文
posted @ 2013-11-15 11:33 Oyking 阅读(2455) 评论(0) 推荐(0)
摘要:Problem DescriptionIn the unimaginable popular DotA game, a hero Naga Siren, also known as Slithice, has a very powerful skill: Song of the Siren, Sli... 阅读全文
posted @ 2013-11-14 23:48 Oyking 阅读(716) 评论(2) 推荐(0)
摘要:DescriptionStill remember those games we played in our childhood? Folding and cutting paper must be among the most popular ones. Clever children will always search for something new, even when they play games like cutting paper. Now, Carol, a smart girl, asks her brother Mike to solve a puzzle. Howe 阅读全文
posted @ 2013-11-13 17:21 Oyking 阅读(556) 评论(0) 推荐(0)
摘要:DescriptionBessie, Farmer John's prize cow, has just won first place in a bovine beauty contest, earning the title 'Miss Cow World'. As a result, Bessie will make a tour of N (2 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int MAXN = 50010; 9 const doubl.. 阅读全文
posted @ 2013-11-11 19:39 Oyking 阅读(404) 评论(0) 推荐(0)
摘要:DescriptionFractals are really cool mathematical objects. They have a lot of interesting properties, often including:1. fine structure at arbitrarily small scales;2. self-similarity, i.e., magnified it looks like a copy of itself;3. a simple, recursive definition.Approximate fractals are found a lot 阅读全文
posted @ 2013-11-11 14:57 Oyking 阅读(487) 评论(0) 推荐(0)
摘要:DescriptionTriathlon is an athletic contest consisting of three consecutive sections that should be completed as fast as possible as a whole. The first section is swimming, the second section is riding bicycle and the third one is running.The speed of each contestant in all three sections is known. 阅读全文
posted @ 2013-11-10 21:43 Oyking 阅读(386) 评论(0) 推荐(0)
摘要:DescriptionThe children's game Hotter Colder is played as follows. Player A leaves the room while player B hides an object somewhere in the room. Player A re-enters at position (0,0) and then visits various other positions about the room. When player A visits a new position, player B announces & 阅读全文
posted @ 2013-11-10 15:36 Oyking 阅读(480) 评论(0) 推荐(0)
摘要:DescriptionThe main land of Japan called Honshu is an island surrounded by the sea. In such an island, it is natural to ask a question: “Where is the most distant point from the sea?” The answer to this question for Honshu was found in 1996. The most distant point is located in former Usuda Town, Na 阅读全文
posted @ 2013-11-10 12:08 Oyking 阅读(417) 评论(0) 推荐(0)
摘要:DescriptionYour friend to the south is interested in building fences and turning plowshares into swords. In order to help with his overseas adventure, they are forced to save money on buying fence posts by using trees as fence posts wherever possible. Given the locations of some trees, you are to he 阅读全文
posted @ 2013-11-09 20:58 Oyking 阅读(293) 评论(0) 推荐(0)
摘要:DescriptionBeing the only living descendant of his grandfather, Kamran the Believer inherited all of the grandpa's belongings. The most valuable one was a piece of convex polygon shaped farm in the grandpa's birth village. The farm was originally separated from the neighboring farms by a thi 阅读全文
posted @ 2013-11-09 20:40 Oyking 阅读(332) 评论(0) 推荐(0)
摘要:DescriptionIt's raining outside. Farmer Johnson's bull Ben wants some rain to water his flowers. Ben nails two wooden boards on the wall of his barn. Shown in the pictures below, the two boards on the wall just look like two segments on the plane, as they have the same width.Your mission is 阅读全文
posted @ 2013-11-09 17:49 Oyking 阅读(268) 评论(0) 推荐(0)
摘要:DescriptionWe all know that a pair of distinct points on a plane defines a line and that a pair of lines on a plane will intersect in one of three ways: 1) no intersection because they are parallel, 2) intersect in a line because they are on top of one another (i.e. they are the same line), 3) inter 阅读全文
posted @ 2013-11-08 22:39 Oyking 阅读(250) 评论(0) 推荐(0)
摘要:DescriptionStan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks, that is these sticks such that there is no stick on top of them. Stan has noticed that the last thrown stick is always on top but he 阅读全文
posted @ 2013-11-08 20:45 Oyking 阅读(272) 评论(0) 推荐(0)
摘要:DescriptionThe most exciting space discovery occurred at the end of the 20th century. In 1999, scientists traced down an ant-like creature in the planet Y1999 and called it M11. It has only one eye on the left side of its head and just three feet all on the right side of its body and suffers from th 阅读全文
posted @ 2013-11-08 17:34 Oyking 阅读(317) 评论(0) 推荐(0)
摘要:DescriptionA square township has been divided up into n*m(n rows and m columns) square plots (1 2 #include 3 #include 4 #include 5 using namespace std; 6 typedef long long LL; 7 8 const int MAXN = 12; 9 const int SIZEH = 13131; 10 const int MAXH = 20010; 11 12 struct hash_map { 13 i... 阅读全文
posted @ 2013-11-06 18:49 Oyking 阅读(263) 评论(0) 推荐(0)
摘要:DescriptionGive a tree with n vertices,each edge has a length(positive integer less than 1001).Define dist(u,v)=The min distance between node u and v.Give an integer k,for every pair (u,v) of vertices is called valid if and only if dist(u,v) not exceed k.Write a program that will count how many pair 阅读全文
posted @ 2013-11-05 20:00 Oyking 阅读(217) 评论(0) 推荐(0)
摘要:DescriptionConsider a tree T with N (1 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int MAXN = 20010; 8 const int MAXE = 40010; 9 const int INF = 0x7fff7fff;10 11 int head[MAXN], size[MAXN], maxSize[MAXN], f[MAXN];12 int to[MAXE], next[MAXE];13 int n, ecnt;14 15 void init()... 阅读全文
posted @ 2013-11-05 16:49 Oyking 阅读(365) 评论(0) 推荐(0)
摘要:题目链接:http://poj.org/problem?id=2631DescriptionBuilding and maintaining roads among communities in the far North is an expensive business. With this in... 阅读全文
posted @ 2013-11-05 13:04 Oyking 阅读(780) 评论(0) 推荐(1)
摘要:Simon loves neatness. So before he goes to bed, Simon wants to complete all chores in the house.Simon's house looks like a rectangular table consisting ofnrows andncolumns from above. All rows of the table are numbered from1tonfrom top to bottom. All columns of the table are numbered from1tonfro 阅读全文
posted @ 2013-11-03 15:55 Oyking 阅读(301) 评论(0) 推荐(0)
摘要:One day Greg and his friends were walking in the forest. Overall there werenpeople walking, including Greg. Soon he found himself in front of a river. The guys immediately decided to get across the river. Luckily, there was a boat by the river bank, just where the guys were standing. We know that th 阅读全文
posted @ 2013-11-03 15:38 Oyking 阅读(447) 评论(0) 推荐(0)
摘要:Berland hasncities, some of them are connected by bidirectional roads. For each road we know whether it is asphalted or not.The King of Berland Valera II wants to asphalt all roads of Berland, for that he gathered a group of workers. Every day Valera chooses exactly one city and orders the crew to a 阅读全文
posted @ 2013-11-01 13:44 Oyking 阅读(673) 评论(0) 推荐(0)