Source Code
#include <iostream>
#include <algorithm>
#include <iterator>
#include <string>
#include <math.h>
#include <vector>
#include <set>
#include <map>
using namespace std;	

int main() {
	int t, h, ans;
	cin >> h >> t;
	ans = 0;
	while (t <= h) {
		t *= t;
		ans++;
	}
	cout << ans;
	return 0;
}







Copy
The Tortoise and the Hare Sarah
GNU G++17
2 ms
620 KB
Wrong Answer