Skip to main content
Commonmark migration
Source Link

#CJam, 8 bytes

CJam, 8 bytes

l_,mQ/N*

Try it online!

###Explanation

Explanation

l     e# Read line from input
_,    e# Duplicate. Get length 
mQ    e# Integer square root
/     e# Split into pieces of that size
N*    e# Join by newline. Implicitly display

#CJam, 8 bytes

l_,mQ/N*

Try it online!

###Explanation

l     e# Read line from input
_,    e# Duplicate. Get length 
mQ    e# Integer square root
/     e# Split into pieces of that size
N*    e# Join by newline. Implicitly display

CJam, 8 bytes

l_,mQ/N*

Try it online!

Explanation

l     e# Read line from input
_,    e# Duplicate. Get length 
mQ    e# Integer square root
/     e# Split into pieces of that size
N*    e# Join by newline. Implicitly display
Source Link
Luis Mendo
  • 105.3k
  • 9
  • 135
  • 372

#CJam, 8 bytes

l_,mQ/N*

Try it online!

###Explanation

l     e# Read line from input
_,    e# Duplicate. Get length 
mQ    e# Integer square root
/     e# Split into pieces of that size
N*    e# Join by newline. Implicitly display