Skip to main content
deleted 16 characters in body
Source Link
rydwolf
  • 18.9k
  • 2
  • 83
  • 172

RiskyRisky, 14 bytes

2_2+_2+__1+_1*__?*_1/}!?*_1

Try it online!Try it online!

Explanation

So many no-ops... 0__0

Parse tree:

             *
      +             /
2      _      _      }
   +      +      *      *
 _  _   _  _   _  _   !  _
  2  2   1  1   ?  1   ?  1

How it works:

                ?            The input string (as a list of charcodes)
              __ *_1         (no-ops)
                    /        Group into sublists of length...
                     }       square root of...
                      !      length of...
                       ?     the input string again
                        *_1  (no-ops)
2_2+_2+__1+_1                Generate the number 10 in a needlessly complicated way
             *               Join the list of lists on 10 (newline)
                             Output the resulting list of numbers as a string

Risky, 14 bytes

2_2+_2+__1+_1*__?*_1/}!?*_1

Try it online!

Explanation

So many no-ops... 0__0

Parse tree:

             *
      +             /
2      _      _      }
   +      +      *      *
 _  _   _  _   _  _   !  _
  2  2   1  1   ?  1   ?  1

How it works:

                ?            The input string (as a list of charcodes)
              __ *_1         (no-ops)
                    /        Group into sublists of length...
                     }       square root of...
                      !      length of...
                       ?     the input string again
                        *_1  (no-ops)
2_2+_2+__1+_1                Generate the number 10 in a needlessly complicated way
             *               Join the list of lists on 10 (newline)
                             Output the resulting list of numbers as a string

Risky, 14 bytes

2_2+_2+__1+_1*__?*_1/}!?*_1

Try it online!

Explanation

So many no-ops... 0__0

Parse tree:

             *
      +             /
2      _      _      }
   +      +      *      *
 _  _   _  _   _  _   !  _
  2  2   1  1   ?  1   ?  1

How it works:

                ?            The input string (as a list of charcodes)
              __ *_1         (no-ops)
                    /        Group into sublists of length...
                     }       square root of...
                      !      length of...
                       ?     the input string again
                        *_1  (no-ops)
2_2+_2+__1+_1                Generate the number 10 in a needlessly complicated way
             *               Join the list of lists on 10 (newline)
                             Output the resulting list of numbers as a string
Source Link
DLosc
  • 39.2k
  • 5
  • 83
  • 141

Risky, 14 bytes

2_2+_2+__1+_1*__?*_1/}!?*_1

Try it online!

Explanation

So many no-ops... 0__0

Parse tree:

             *
      +             /
2      _      _      }
   +      +      *      *
 _  _   _  _   _  _   !  _
  2  2   1  1   ?  1   ?  1

How it works:

                ?            The input string (as a list of charcodes)
              __ *_1         (no-ops)
                    /        Group into sublists of length...
                     }       square root of...
                      !      length of...
                       ?     the input string again
                        *_1  (no-ops)
2_2+_2+__1+_1                Generate the number 10 in a needlessly complicated way
             *               Join the list of lists on 10 (newline)
                             Output the resulting list of numbers as a string