We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d8274 commit 1a3b648Copy full SHA for 1a3b648
791A - Bear and Big Brother.cpp
@@ -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