hdu 1593 find a way to escape
来源:互联网 发布:阿里云的服务器怎么样 编辑:程序博客网 时间:2024/05/21 17:16
//0068可以在湖面上找一个角速度等于elnil的角速度的同心圆,设半径为r。0068和elnil在圆的一直径上,并且位于圆心的两边。此时 r=V1*R/V2。//然后0068再奋力划向岸边,所需时间t1=(R-r)/V1。而elnil到那点的所需时间 t2 = PI*R/V2。//最后判断两个时间的大小即可。#include<iostream>#include<cmath>#define pi acos(-1.0)using namespace std;int main(){double R, v1, v2;while(scanf("%lf%lf%lf", &R, &v1, &v2) != EOF){double r, t1, t2;r = R * v1 / v2;t1 = pi * R / v2;t2 = (R-r) / v1;if(t1 < t2)printf("No\n");elseprintf("Yes\n");}return 0;}
- hdu 1593 find a way to escape
- HDU 1593 find a way to escape
- hdu 1593 find a way to escape
- hdu 1593 find a way to escape
- HDU 1593 find a way to escape
- hdu 1593 find a way to escape
- HDU 1593 find a way to escape
- HDU 1593: find a way to escape
- HDU 1593 find a way to escape
- hdu find a way to escape(1593)
- hdu 1593 find a way to escape
- HDU 1593 find a way to escape
- HDU 1593 find a way to escape
- hdu Find a way to escape (几何)
- HDU 1593 - find a way to escape(思维)
- HDU 1593 find a way to escape(角速度)
- find a way to escape(1593)
- find a way to escape
- linux下链表要初始化
- eclipse更新地址
- 全面剖析XMLHttpRequest对象(4)
- struts2学习1
- 快排的疑惑?
- hdu 1593 find a way to escape
- 【Codeigniter-Upload类】文件名乱码问题
- PHP输出全部汉字
- Web项目build.xml
- Android学习笔记---08_短信发送器的制作
- Silverlight发布到IIS上
- [总结] wxWidgets遇到的编译问题
- 提高绩效辅导有效性的八大实战技巧<二>
- Ajax:拥抱JSON,让XML走开(1)