Skip to main content
Commonmark migration
Source Link

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

##Explanation

Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements bottom of stack at start of loop
                 then decrements each time loop reaches end
                 Exits when bottom of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

##Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements bottom of stack at start of loop
                 then decrements each time loop reaches end
                 Exits when bottom of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements bottom of stack at start of loop
                 then decrements each time loop reaches end
                 Exits when bottom of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.
added 27 characters in body
Source Link
Mayube
  • 11.7k
  • 2
  • 48
  • 93

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

##Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements topbottom of stack at start of loop
                 then decrements each time loop reaches end, 
 exits                Exits when topbottom of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

##Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements top of stack at start of loop
                 then decrements each time loop reaches end, exits when top of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

##Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements bottom of stack at start of loop
                 then decrements each time loop reaches end 
                 Exits when bottom of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.
added 902 characters in body
Source Link
Mayube
  • 11.7k
  • 2
  • 48
  • 93

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

##Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements top of stack at start of loop
                 then decrements each time loop reaches end, exits when top of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.

Braingolf, A010701

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

Braingolf, A010701 Score: 9 [SAFE]

Byte set:

0x21, 0x24, 0x2F, 0x3A, 0x3F, 0x5B, 0x5D, 0x5F, 0x7C

Try it Online!

The code:

$_/[!?:]|[!?:]|

Try it online!

##Explanation

$_/[!?:]|[!?:]|  Implicit input from commandline args
$_               Remove top of stack
  /              Niladic division, push 5
   [...]         While loop, decrements top of stack at start of loop
                 then decrements each time loop reaches end, exits when top of stack is 0
    !?:.|        If conditional without popping, runs contained code if top of stack is 0
                 This is the sneaky trick here. The conditional skips the end of the loop
                 As a result, this whole block from [ to | effectively acts as a decrement.
         [!?:]|  We do this twice to lower the 5 we pushed down to 3
                 Implicit output of top of stack.
Post Undeleted by Mayube
Post Deleted by Mayube
Source Link
Mayube
  • 11.7k
  • 2
  • 48
  • 93
Loading