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 Answer

added 500 characters in body
Source Link
emanresu A
  • 46.2k
  • 5
  • 111
  • 257

Vyxal , 10 bytes

`:qpq`:qpq

Try it Online!

Vyxal V

`\`:qpq\`:qpq`

Try it Online!

The V flag does nothing, the first is a quine that unevaluates itself, and the second is a string.

Or...

Vyxal DrV, 16 bytes

`q\`:Ė\`p1→ip`:Ė

Try it Online!

Vyxal Dr

0`q\`:Ė\`p1→ip`:Ė

Try it Online!

The 0 at the start is a NOP - Vyxal pads the stack with 0s anyway, so the two programs are functionally identical.

`q\`:Ė\`p `:Ė # Standard eval quine
 1→ip # If `V` (single-char variable names) is off, this stores 1 to the variable ip.
 # If it's on, this stores 1 to the variable i and prepends a 0 to the current program.

Vyxal DrV, 16 bytes

`q\`:Ė\`p1→ip`:Ė

Try it Online!

Vyxal Dr

0`q\`:Ė\`p1→ip`:Ė

Try it Online!

The 0 at the start is a NOP - Vyxal pads the stack with 0s anyway, so the two programs are functionally identical.

`q\`:Ė\`p `:Ė # Standard eval quine
 1→ip # If `V` (single-char variable names) is off, this stores 1 to the variable ip.
 # If it's on, this stores 1 to the variable i and prepends a 0 to the current program.

Vyxal , 10 bytes

`:qpq`:qpq

Try it Online!

Vyxal V

`\`:qpq\`:qpq`

Try it Online!

The V flag does nothing, the first is a quine that unevaluates itself, and the second is a string.

Or...

Vyxal DrV, 16 bytes

`q\`:Ė\`p1→ip`:Ė

Try it Online!

Vyxal Dr

0`q\`:Ė\`p1→ip`:Ė

Try it Online!

The 0 at the start is a NOP - Vyxal pads the stack with 0s anyway, so the two programs are functionally identical.

`q\`:Ė\`p `:Ė # Standard eval quine
 1→ip # If `V` (single-char variable names) is off, this stores 1 to the variable ip.
 # If it's on, this stores 1 to the variable i and prepends a 0 to the current program.
Source Link
emanresu A
  • 46.2k
  • 5
  • 111
  • 257

Vyxal DrV, 16 bytes

`q\`:Ė\`p1→ip`:Ė

Try it Online!

Vyxal Dr

0`q\`:Ė\`p1→ip`:Ė

Try it Online!

The 0 at the start is a NOP - Vyxal pads the stack with 0s anyway, so the two programs are functionally identical.

`q\`:Ė\`p `:Ė # Standard eval quine
 1→ip # If `V` (single-char variable names) is off, this stores 1 to the variable ip.
 # If it's on, this stores 1 to the variable i and prepends a 0 to the current program.

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