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