[py3] my 99% simple code
```\nclass Solution:\n    def areSimilar(self, mat: List[List[int]], k: int) -> bool:\n        m, n = len(mat), len(mat[0])\n        k = k % n\n        for i in
```\nclass Solution:\n    def areSimilar(self, mat: List[List[int]], k: int) -> bool:\n        m, n = len(mat), len(mat[0])\n        k = k % n\n        for i in range(0,m,2):\n            for j in range(n):\n                if mat[i][j] != mat[i][(j-k)%n]:\n                    return False\n        for i in range(1,m,2):\n            for j in range(n):\n                if mat[i][j] != mat[i][(j+k)%n]:\n                    return False\n        return True\n\t\t
[]