You are viewing a single comment's thread. Return to all comments →
My Python3 solution. Do not have to use 2-d array.
#!/bin/python3 import sys s = input().strip() rows = int(len(s) ** 0.5) if rows < len(s) ** 0.5: columns = rows + 1 else: columns = rows for i in range(columns): print(s[i::columns], end = ' ')
Seems like cookies are disabled on this browser, please enable them to open this website
Encryption
You are viewing a single comment's thread. Return to all comments →
My Python3 solution. Do not have to use 2-d array.