From dd7ee8f7aa08a28444c1bbcd1aa78293771464cf Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Wed, 7 Jun 2023 20:15:21 +0600 Subject: [PATCH] initial commit --- 791A-BearAndBigBrother/791A.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 791A-BearAndBigBrother/791A.cpp diff --git a/791A-BearAndBigBrother/791A.cpp b/791A-BearAndBigBrother/791A.cpp new file mode 100644 index 0000000..aee4ec3 --- /dev/null +++ b/791A-BearAndBigBrother/791A.cpp @@ -0,0 +1,15 @@ +#include +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<