Source Code
#include <iostream>
 using namespace std;
int main() {
	int h,t, count =0;
	cin>>h>>t;
	while(t<=h)	{
		t = t+t;
		count+=1;
	}
	cout<<count<<endl;
	return 0;
}
Copy
The Tortoise and the Hare 5hafiq
GNU G++14
2 ms
512 KB
Wrong Answer