✅simple simulation || python
\n# Code\n\nclass Solution:\n    def decodeCiphertext(self, encodedText: str, rows: int) -> str:\n        c=ceil(len(encodedText)/rows)\n        ans=""\n       
\n# Code\n```\nclass Solution:\n    def decodeCiphertext(self, encodedText: str, rows: int) -> str:\n        c=ceil(len(encodedText)/rows)\n        ans=""\n        for i in range(c):\n            j=0\n            while(i+j<len(encodedText)):\n                ans+=encodedText[i+j]\n                j+=c+1\n        i=len(ans)-1\n        while(i>=0):\n            if(ans[i]==\' \'):\n                i-=1\n            else: break\n\n        return ans[:i+1]\n```
['String', 'Simulation', 'Python3']