Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Telescope
Description Updog 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 is Input The input will contain several test cases. For each case: y each, which describe the coordinates of a vertex. Two vertexes in adjacent lines are also adjacent on the polygon. _{i}Constraints: 3 ≤ N ≤50, 0.1 ≤ R ≤1000, -1000 ≤ x, _{i}y ≤ 1000_{i}Output For each test case, output one real number on a separate line, which is the area of the part that can be seen. The result should be rounded to two decimal places. Sample Input 10 3 0 20 10 0 -10 0 Sample Output 144.35 Source |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator