Source Code
#include <iostream>
using namespace std;
int main()
{
    int h, t, count = 0;
    cin >> h >> t;
    while (h >= t) {
        t += t;
        count++;
    }
    cout << count;
}
Copy
The Tortoise and the Hare 5hafiq
GNU G++17
2 ms
592 KB
Wrong Answer