///
作者:tt267
声明:本文遵循以下协议自由转载-非商用-非衍生-保持署名|Creative Commons BY-NC-ND 3.0
转载请注明:http://blog.csdn.net/tt2767/article/details/45970117
///
题目链接:http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?cid=584&pid=1004
仔细看给的提示和样例,如果小度能把第一个放进去,那么他必然赢,因为偶数边正多边形都是对称的,如果只能放进去一个也是小度赢,所以说。。。。
#include<iostream>
#include<algorithm>
#include<math.h>
#include<stdlib.h>
using namespace std;
#define PI acos(-1.0)
int main()
{
int n,id=1,Case;
double l,a,r;
scanf("%d",&Case);
while(Case--)
{
scanf("%d%lf%lf",&n,&a,&r);
printf("Case #%d:\n",id++);
l = a/(tan(PI/n)) ;
printf("%s\n",l > 2*r?"Give me a kiss!":"I want to kiss you!");
}
}