[AGECO 实力评估 1] T1 Projectile Solution
这是一道完完全全的物理题!
我们考虑落地时的斜率 和速度v,
求出落地时的往左速度 为 ,
垂直下落速度 为 .
AC Code
#include <bits/stdc++.h>
#define int long double
using namespace std;
int a, b;
int main() {
cin >> a >> b;
int c = 1.0 / tan(b);
int left = sqrt(a*a/(c*c+1));
int down = c*left;
int time = down/10.0;
int left_dis = time*left;
int down_dis = time*time*5.0;
cout << left_dis << " " << down_dis;
return 0;
}提示:会 哦