HDU 4998 Rotate (计算几何)

时间:2023-12-05 17:00:14

HDU 4998 Rotate (计算几何)

题目链接http://acm.hdu.edu.cn/showproblem.php?pid=4998

Description

Noting is more interesting than rotation!

Your little sister likes to rotate things. To put it easier to analyze, your sister makes n rotations. In the i-th time, she makes everything in the plane rotate counter-clockwisely around a point ai by a radian of pi.

Now she promises that the total effect of her rotations is a single rotation around a point A by radian P (this means the sum of pi is not a multiplier of 2π).

Of course, you should be able to figure out what is A and P