first check than than we just need to swap one column with another or not. If we need to swap 2 or 0 column then just swap & feel that Accepted... Else feel disappoint & carried out (-1) . ///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>()) for decrement of array /*...
I am Tanvir Ahmmad from Bangladesh. Working as a competitive programmer. It will be very pleasure to help you. Happy coding...