fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int x,y;
  7. cin>>x>>y;
  8. int count=0;
  9. int i=0;
  10. while(x<y)
  11. {
  12. x=3*x;
  13. y=2*y;
  14. count++;
  15.  
  16.  
  17.  
  18.  
  19. i++;
  20. }
  21. cout<<count<<endl;
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0.01s 5288KB
stdin
4 7
stdout
2