C++ Voleyball Problem
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
string y; double p, h;
double y_c;
cin >> y >> p >> h;
double not_working = (48 - h) * 3 / 4;
double p_home = p * 2 / 3;
double Total = p_home + h + not_working;
if (y == "leap") {
y_c = Total;
Total *= 0.15;
y_c += Total;
}
else if (y == "normal") {
y_c = Total;
}
cout << round(y_c);
}
С това решения изваждам 70 / 100.Надявам се, че някой може да ми помогне.