Source Code
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    int h,t,c=0;
    cin>>h>>t;
    while(t<=h)
    {
        t+=t;
        c++;
    }
    cout<<c;
    return 0;
}
Copy
The Tortoise and the Hare Mouayad7
GNU G++17
2 ms
768 KB
Wrong Answer