Source Code
#include <iostream>
using namespace std;

int main() {
	int H;
	int T;
	
	cin>>H;
	cin>>T;
	
	int h;
	int t;
	
	if(H>=1 && T<=100)
	{
		h=H;
		t=T;
	}
	
	int count=0;
	
	while(h>t)
	{
		t+=t;
		count++;
	}
	
	cout<<count;
	
	return 0;
}
Copy
The Tortoise and the Hare RaghadKhater
GNU G++17
3 ms
320 KB
Wrong Answer