791A - Bear Big Brother
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
int main(void)
{
int a, b, ans = 0;
cin >> a >> b;
while (a <= b)
{
a *= 3;
b *= 2;
++ans;
}
cout << ans << endl;
return 0;
}