Source Code
#include <bits/stdc++.h>

using namespace std;


void solve()
{
    int n,m,cnt=0;
    cin>>n>>m;

    while(n>=m)
    {
        m+=m;
        cnt++;
    }

cout<<cnt;
}

int main()
{
    int t=1;
    //cin>>t;

    while(t--)
    {
        solve();
        cout<<endl;
    }
    return 0;
}
Copy
The Tortoise and the Hare mhna.
GNU G++17
3 ms
864 KB
Wrong Answer