标签:c++
#include <iostream> #include <cstdio> #include <math.h> #define pi acos(-1.0) const double eps = 1e-6; using namespace std; int main() { int n,cot=0; cin>>n; while(n--) { double n,m,r; cin>>n>>m>>r; printf("Case #%d:\n",++cot); double l=(m/2)/tan(pi/n); if(l>r+eps) puts("Give me a kiss!"); else puts("I want to kiss you!"); } }
标签:c++
原文地址:http://blog.csdn.net/calamity_coming/article/details/45954569