Submission #15252

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
152522015-07-12 04:37:46jeapi님 무기가 좀 나쁘시네여 (kriii3_S)C++98
0 / 29
0 ms1720 KiB
#include<iostream>
#define min(a,b) (a)<(b)?(a):(b)
using namespace std;
double power(double A, double B, double C, double D, double E){
double K = A;
double b, c, d;
K = K*(1 + (B / 100));
K = K*(1 + (E/100));
K = K*((1 - min((C / 100), 1)) + min((C / 100), 1)*(D / 100));
return K;
}
void find(double x, double y){
if (x > y)
cout << '-' << endl;
else if (x == y)
cout << 0 << endl;
else
cout << '+' << endl;
}
int main(){
double a, b, c, d, x;
double A, B, C, D, X;
cin >> a >> b >> c >> d >> x;
cin >> A >> B >> C >> D >> X;
double cre = power(a, b, c, d, x);
double pu = power(A, B, C, D, X);
int e, f, g, h, i;
int E, F, G, H, I;
cin >> e >> f >> g >> h >> i;
cin >> E >> F >> G >> H >> I;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...