fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b;
  6. cin >> a >> b;
  7. int y = 0;
  8. while (a <= b) {
  9. a = a*3;
  10. b = b*2;
  11. y=y+ 1;
  12. }
  13. cout << y<< endl;
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5320KB
stdin
1 1 
stdout
1