CF140A.New Year Table
普及/提高-
通过率:0%
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Gerald is setting the New Year table. The table has the form of a circle; its radius equals R . Gerald invited many guests and is concerned whether the table has enough space for plates for all those guests. Consider all plates to be round and have the same radii that equal r . Each plate must be completely inside the table and must touch the edge of the table. Of course, the plates must not intersect, but they can touch each other. Help Gerald determine whether the table is large enough for n plates.
输入格式
The first line contains three integers n , R and r ( 1<=n<=100 , 1<=r,R<=1000 ) — the number of plates, the radius of the table and the plates' radius.
输出格式
Print "YES" (without the quotes) if it is possible to place n plates on the table by the rules given above. If it is impossible, print "NO".
Remember, that each plate must touch the edge of the table.
输入输出样例
输入#1
4 10 4
输出#1
YES
输入#2
5 10 4
输出#2
NO
输入#3
1 10 10
输出#3
YES
说明/提示
The possible arrangement of the plates for the first sample is: