Accepted solution

791A - Bear and Big Brother

Open original problem
Source code

#include<bits/stdc++.h>

using namespace std;

int main()

{

   int a,b;

   cin>>a>>b;

   int count=0;

   while(a<=b)

   {

       count++;

       a*=3;

       b*=2;

   }

   cout<<count<<endl;

}
Join the discussion

Add your comment