Submission

Status:

---P------

Subtask/Task Score:

10/100

Score: 10

User: Karatat007

Problemset: Power Roll

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-09 13:45:54

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    const long double P = 3.28,S = 1.15112,N = 4.80852,L0 = 13.0725,Pi = 3.14159;
    long double I,V,L,H,theta,rhox,rhoy,d;
    cin >> I >> V >> L >> H >> theta >> rhox >> rhoy >>d;
    theta *= Pi/180;
    long double a = V*I*tan(P*(sqrt((cos(theta)*rhox - sin(theta)*rhoy)*(cos(theta)*rhox - sin(theta)*rhoy)+(sin(theta)*rhox+rhoy)*(sin(theta)*rhox+rhoy))/L0));
    long double b = fmodl(ceill(expl(N * d)), 69.0L) * L * cbrtl(H);
    long double ans = P * log(fabsl(cbrtl(a/b))) / log(S); 
    ans = round(ans * 1e4) / 1e4;
    cout << fixed << setprecision(4) << ans << " NP";
}