hdu 1593

地址:http://acm.hdu.edu.cn/showproblem.php?pid=1593

题意:中文。

mark:1wa。直接往开始的反方向按半径逃不可以。找一个同心圆,让V1的角速度略大V2。在那个圈上0086可以甩对方一个直径后再往岸边划。

代码:

# include <stdio.h>
# include <math.h>


# define Pi acos(-1)


int main ()
{
int R, V1, V2 ;
double t1, t2 ;
while (~scanf ("%d%d%d", &R, &V1, &V2))
{
t1 = R*(V2-V1)*1.0/(V1*V2) ;
t2 = Pi*R/V2 ;
if (t1 < t2) puts ("Yes") ;
else puts ("No") ;
}
return 0 ;
}



原文地址:https://www.cnblogs.com/lzsz1212/p/2321185.html