Submission

Status:

---P------

Subtask/Task Score:

10/100

Score: 10

User: Karatat007

Problemset: Power Roll

Language: cpp

Time: 0.002 second

Submitted On: 2026-10-11 09:35:24

#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*tanl(P*(sqrtl((cosl(theta)*rhox - sinl(theta)*rhoy)*(cosl(theta)*rhox - sinl(theta)*rhoy)+(sinl(theta)*rhox+rhoy)*(sinl(theta)*rhox+rhoy))/L0));
    long double b = fmodl(ceill(expl(N * d)), 69.0L) * L * cbrtl(H);
    long double ans = P * logl(fabsl(cbrtl(a/b))) / logl(S); 
    ans = roundl(ans * 1e4L) / 1e4L;
    if(ans == 0) ans = 0;
    cout << setprecision(15) << ans << " NP";
}