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<