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 Revisions

2 of 2
Commonmark migration

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

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