Source Code
#include<iostream>
using namespace std;
 
int main(){
	int h, t;
	cin >> h;
	cin >> t;
	int counter = 0;
	if (t <= h) {
		for (int i = 0; i < 100; i++) {
			t = t * 2;
			counter++;
			if (t > h) break;
		}
		cout << counter;
	}
	else
		cout << 0;

}
Copy
The Tortoise and the Hare salem
GNU G++17
3 ms
600 KB
Wrong Answer