Submission
Status:
---PP-----
Subtask/Task Score:
20/100
Score: 20
User: Karatat007
Problemset: Power Roll
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-11 09:37:53
#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;
double rad = theta * (Pi/180);
double x = cos(rad)*rhox + (-sin(rad))*rhoy;
double y = sin(rad)*rhox + 1.0*rhoy;
double norm = sqrt(x*x + y*y);
double a = tan((norm/L0)*P) * I * V;
double b = L * fmod(ceil(exp(N*d)), 69.0) * cbrt(H);
double ans = P * log(fabs(cbrt(a/b))) / log(S);
ans = round(ans * 1e4) / 1e4;
if(ans == 0) ans = 0;
cout << setprecision(15) << ans << " NP";
}