[Python3] SIMULATION
Number of cols is simply a length of the string divided by rows since every char in the given string has its representation as a cell in the matrix\n- Notice th
- Number of cols is simply a length of the string divided by rows since every char in the given string has its representation as a cell in the matrix\n- Notice that it\'s possible to have spaces at the start but any trailing spaces should be stripped\n\nRuntime: 524 ms, faster than **85.93%** of Python3 online submissions for Decode the Slanted Ciphertext.\nMemory Usage: 26.5 MB, less than **76.88%** of Python3 online submissions for Decode the Slanted Ciphertext.\n\n```\nclass Solution:\n    def decodeCiphertext(self, et: str, rows: int) -> str:\n        L = len(et)\n        if not L: return et\n        \n        cols, ans, start = L//rows, et[0], 0\n        i, j = 0, start\n        while start < cols - 1:\n            i, j = i + 1, j + 1\n            if i == rows or j == cols:\n                start += 1\n                i, j = 0, start\n                ans += et[start]\n                continue\n            \n            ans += et[cols*i + j]\n                    \n        return ans.rstrip()\n```
['Python3']