You are viewing a single comment's thread. Return to all comments →
A C# solution without anything ;)
using System; class Solution { static void Main(String[] args) { string s = Console.ReadLine(); Int32 Lmax = (Int32)Math.Ceiling(Math.Sqrt(s.Length)); for(Int32 i = 0; i < Lmax; i++){ Console.Write(s[i]); for(Int32 j = i+Lmax; j < s.Length; j+=Lmax){Console.Write(s[j]);} Console.Write(" "); } } }
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 →
A C# solution without anything ;)