@codeforces - 1209E2@ Rotate Columns (hard version)

NoSuchKey