当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

1902:Illumination

Special Judge 特殊评判
题目描述
You are given N light sources on the plane, each of which illuminates the angle of 2π/N with the vertex in the source point (including its sides).

You must choose the direction of the illuminated angle for each of these sources, so that the whole plane is illuminated. It can be proved that this is always possible.
A light source itself casts no shadow and does not interfere with light beams from the other sources.
输入解释
The first line of the input file contains N -- the number of light sources (3 <= N <= 30). Next N lines contain two integer numbers each -- the coordinates of the light sources. All coordinates do not exceed 100 by their absolute value. No two sources coincide.
输出解释
Print N real numbers - for each light source specify an angle that the bisector of the illuminated angle makes with OX axis, counterclockwise. Print at least six digits after the decimal point. No angle must exceed 100π by its absolute value.
输入样例
3
0 0
2 0
1 1
输出样例
0.52359877559829887
2.61799387799149437
4.71238898038468986
提示

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-1902

最后修改于 2020-10-29T06:17:13+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 30000