c++ | easy | short
\n# Code\n\nclass Solution {\npublic:\n   string decodeCiphertext(string e, int rows) {\n\t\tint size=e.size();\n\t\tint col=size/rows;\n\t\tstring ans;\n\t\tfo
\n# Code\n```\nclass Solution {\npublic:\n   string decodeCiphertext(string e, int rows) {\n\t\tint size=e.size();\n\t\tint col=size/rows;\n\t\tstring ans;\n\t\tfor(int i=0;i<col;i++)\n\t\t{\n\t\t\tfor(int j=i;j<size;j+=col+1)\n\t\t\t{\n\t\t\t\tans+=e[j];\n\t\t\t}\n\t\t}\n\t\twhile (isspace(ans.back()))\n\t\t{\n\t\t\tans.pop_back();\n\t\t}\n\t\t\treturn ans;\n\t\t}\n\t\n};\n```
['C++']