fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double p1, p2, p3, op, sp;
  6. cin >> p1 >> p2 >> p3;
  7. op=((1+p1/100)*(1+p2/100)*(1+p3/100)-1)*100;
  8. sp=op/3;
  9. cout << sp << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3464KB
stdin
15 30 50
stdout
Standard output is empty