fork download
  1. #include <iostream>
  2.  
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10. long double x, y;
  11. long long t;
  12. cin >> x >> t >> y;
  13.  
  14. int T = 0;
  15.  
  16. while (x > y)
  17. {
  18. x = x * 3 / 4;
  19. T++;
  20. }
  21. cout << T * t;
  22. return 0;
  23.  
  24. }
  25.  
Success #stdin #stdout 0.01s 5476KB
stdin
Standard input is empty
stdout
Standard output is empty