题意:求曲线积分的题
公式:length=v2*r*arcsin(v1/v2)/v1;
/****************************************************************
Problem : 4969 ( Just a Joke ) Judge Status : Accepted
RunId : 11501653 Language : C++ Author : alpc_wcq
Code Render Status : Rendered By HDOJ C++ Code Render Version 0.01 Beta
****************************************************************/
#include <cmath>
#include <cstring>
#include <cstdio>
#include <iostream>
using namespace std;
int main ()
{
//freopen("data.in","r",stdin);
double v1,v2,len;
int ae,be,r,d;
int TT;
scanf("%d",&TT);
while (TT--)
{
scanf("%d%d%d%d",&ae,&be,&r,&d);
v1=ae,v2=be;
len=(v2/v1)*r*asin(v1/v2);
//printf("%lf\n",len);
if(len>d)
{
printf("Why give up treatment\n");
}
else {
printf("Wake up to code\n");
}
}
return 0;
}