Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

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
  • 106.7k
  • 10
  • 139
  • 382

#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

AltStyle によって変換されたページ (->オリジナル) /