0
点赞
收藏
分享

微信扫一扫

luogu 4710 「物理」平抛运动

Greatiga 2022-08-08 阅读 84


​​http://www.elijahqi.win/archives/3805​​

简单模拟

#include<bits/stdc++.h>
#define pi acos(-1)
using namespace std;
double v,ta,y,vans,x,vyt;
int main(){
// freopen("1.in","r",stdin);
scanf("%lf%lf",&v,&ta);
vyt=v*cos(ta);double t=vyt/10;
y=vyt*t/2;vans=v*sin(ta);
x=vans*t;
printf("%f %f\n",x,y);
return 0;
}


举报

相关推荐

0 条评论