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

using namespace std;

  int main()
{
//freopen("files.in","r",stdin);
int n,t; cin>>n>>t;
int ans=0;
while(n>=t){
    ans++;
    t+=t;}
    cout<<ans<<endl;
    return 0;
}
Copy
The Tortoise and the Hare Mohammed Al Okla
GNU G++17
2 ms
624 KB
Wrong Answer