Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Karatat007
Problemset: Power Roll
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-11 09:40:15
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
const double P = 3.28,S = 1.15112,N = 4.80852,L0 = 13.0725,Pi = 3.14159;
double I,V,L,H,theta,rhox,rhoy,d;
cin >> I >> V >> L >> H >> theta >> rhox >> rhoy >>d;
theta *= Pi/180;
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));
double b = fmod(ceil(exp(N * d)), 69.0) * L * cbrt(H);
double ans = P * log(fabs(cbrt(a/b))) / log(S);
ans = round(ans * 1e4) / 1e4;
if(ans == 0) ans = 0;
cout << ans << " NP";
}