Skip to content

Commit 1a3b648

Browse files
committed
Added 791A - Bear and Big Brother.cpp
1 parent 11d8274 commit 1a3b648

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Diff for: 791A - Bear and Big Brother.cpp

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
// Code Written By: Vikash Patel
5+
6+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
7+
8+
int main()
9+
{
10+
int a,b;
11+
cin>>a>>b;
12+
int t=0;
13+
int tTime;
14+
while(true)
15+
{
16+
if(a>b)
17+
{
18+
tTime=t;
19+
break;
20+
}
21+
t++;
22+
a*=3;
23+
b*=2;
24+
}
25+
cout<<tTime<<endl;
26+
}

0 commit comments

Comments
 (0)