Skip to main content
3 of 8
deleted 4 characters in body
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284

#Retina, 62 43 bytes

.+
11:$&;111:$&;1111:$&
\b(1+):(\1*)1*
$1$2

Try it online!

Input in unary, output in unary separated by semi-colon (;).

##Previous 62-byte version:

.+
$&11;$&111;$&1111
((11)+)1*;((111)+)1*;((1111)+)1*
$1;$3;$5

Try it online!

Input in unary, output in unary separated by semi-colon (;).

Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284