摘要:
链接:http://acm.hdu.edu.cn/showproblem.php?pid=2298题意:斜抛运动。。。起点坐标(0,0),终点坐标(x,y),速度v,g=9.8,求最小弧度角。(不存在输出-1)思路:总方程 g*x^2(tanθ)^2- 2*x*v^2*tanθ+ 2*y*v^2 + g*x^2 = 0;求tanθ。 ans = atan(tanθ);1#include2#include34#defineg9.85#definePI(double)acos(-1.0)67intmain()8{9intt;10doublex,y,v,ans;11scanf("%d&qu 阅读全文
posted @ 2013-12-13 11:08
byluoluo
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号