using second operation the answer is maximum is 15 because 2 15 =32768 so we need to pre-calculate all the illegible input 0 to 32768 using second operation Then just increment 1(using first operation) from input check is it minimum is not ! ///Bismillahir Rahmanir Rahim ///Author: Tanvir Ahmmad ///CSE,Islamic University,Bangladesh #include< iostream > #include< cstdio > #include< algorithm > #include< string > #include< cstring > #include< sstream > #include< cmath > #include< cstring > #include< vector > #include< queue > #include< map > #include< set > #include< stack > #include< vector > #include< iterator > #include < functional > ///sort(arr,arr+n,greater<int...
I am Tanvir Ahmmad from Bangladesh. Working as a competitive programmer. It will be very pleasure to help you. Happy coding...
Comments
Post a Comment