This is the C. Column Swapping of Codeforces Round #792 (Div. 1 + Div. 2)
----------------------------------------------------------------------------------------------------------------------------
Dynamic Programming Playlist - https://youtube.com/playlist?list=PLnf_DV97XNw6yHFZQPjAARMuP8AVtSJxV
----------------------------------------------------------------------------------------------------------------------------
Problem Link - https://codeforces.com/contest/1684/problem/C
Solution Link - https://pastebin.com/9yqyZJ7K
----------------------------------------------------------------------------------------------------------------------------
Subscribe to the channel and press the bell 🔔 for the latest updates!!!
----------------------------------------------------------------------------------------------------------------------------