首页 > 代码库 > [HDU4969]Just a Joke

[HDU4969]Just a Joke

题目:Just a Joke

传送门:http://acm.hdu.edu.cn/showproblem.php?pid=4969

分析:

 呀,根本不会做,5555~(逃

http://blog.csdn.net/morejarphone/article/details/51766422

http://blog.csdn.net/u011775691/article/details/38691623

http://www.cnblogs.com/andyqsmart/p/4014534.html

代码:

#include <cstdio>
#include <cmath>
int main(){
    int Case;scanf("%d",&Case);
    double v1,v2,R,D;
    for(;Case--;){
        scanf("%lf%lf%lf%lf",&v1,&v2,&R,&D);
        double t=R/v1*(asin(v1/v2));
        if(t*v2>D)
            puts("Why give up treatment");
        else
            puts("Wake up to code");
    }
} 

 

[HDU4969]Just a Joke