initial commit
This commit is contained in:
parent
b19b7d848f
commit
dd7ee8f7aa
15
791A-BearAndBigBrother/791A.cpp
Normal file
15
791A-BearAndBigBrother/791A.cpp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include<bits/stdc++.h>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a,b,i;
|
||||||
|
cin>>a>>b;
|
||||||
|
for(i=1;a<=b;i++)
|
||||||
|
{
|
||||||
|
a=a*3;
|
||||||
|
b=b*2;
|
||||||
|
if(a>b) break;
|
||||||
|
}
|
||||||
|
cout<<i<<endl;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user