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

3 of 4
added 404 characters in body
DJMcMayhem
  • 60.1k
  • 18
  • 203
  • 352

#Vim, (削除) 59, 57 (削除ここまで), 48 bytes/keystrokes

$:let @q=float2nr(sqrt(col('.')))."|li<C-v><cr><C-v><esc>@q"<cr>@q

Since V is backwards compatible, you can Try it online!

I randomly received an upvote on this answer, so I looked over it again. My vim-golfing skills have greatly increased over the last 7 months, so I saw that this answer was very poorly golfed. This one is much better.

DJMcMayhem
  • 60.1k
  • 18
  • 203
  • 352

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