Problem 1004 ÎÒÌì ʲô¹í

guoshuai1995 | 2016-05-09 23:03:13Author
#include<stdio.h> #include<math.h> #define pi 3.14159 int main() { int t; int n; float m,r; float temp; float add; scanf("%d",&t); for(int i=0;i { scanf("%d %f %f",&n,&m,&r); add=(float)cos(pi/n)/(float)sin(pi/n); temp =(m/2.0)*add; printf("Case #%d:\n",i+1); if(temp>=r) printf("Give me a kiss!\n"); else printf("I want to kiss you!\n"); } return 0; }