Python
\nclass Solution:\n    def decodeCiphertext(self, s: str, rows: int) -> str:\n        if not s: return ""\n        n=len(s)\n        cols=n//rows\n        arr=[
```\nclass Solution:\n    def decodeCiphertext(self, s: str, rows: int) -> str:\n        if not s: return ""\n        n=len(s)\n        cols=n//rows\n        arr=[" "]*n\n        for i in range(rows):\n            for j in range(cols):\n                if i>j: continue\n                arr[i+rows*(j-i)]=s[i*cols+j]\n        i=n-1\n        while i>=0 and arr[i]==" ":\n            i-=1\n        return \'\'.join(arr[:i+1])\n            \n        \n```
['Python', 'Python3']