时间限制:1秒 内存限制:128兆
4 10 4 5 10 4 1 10 10
YES NO YES题目链接:http://acm.hust.edu.cn/problem/show/1584
1 #include <bits/stdc++.h> 2 using namespace std; 3 const double pi=acos(-1.0); 4 #define eps 1e-8; 5 int main() 6 { 7 int num,n; 8 double R,r; 9 while(cin>>n>>R>>r) 10 { 11 if(r>R) 12 num=0; 13 else if(r>R/2) 14 num=1; 15 else 16 num=pi/(asin(r/(R-r)))+eps; 17 18 if(num>=n) 19 cout<<"YES"<<endl; 20 else 21 cout<<"NO"<<endl; 22 } 23 return 0; 24 }
原文:http://www.cnblogs.com/ECJTUACM-873284962/p/6390028.html