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

Commonmark migration
Source Link

05AB1E, (削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RO}7Y*;ïQ#Y=ÌV

Try it online!

###Explanation### [YF6L.RO}7Y*;ïQ#Y=ÌV [ # Infinite loop start YF } # Y times... (Y defaults to 2) 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.) O # Sum 7Y*;ï # Push 3.5 * Y as an int Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

Explanation

[YF6L.RO}7Y*;ïQ#Y=ÌV
[ # Infinite loop start
 YF } # Y times... (Y defaults to 2)
 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.)
 O # Sum
 7Y*;ï # Push 3.5 * Y as an int
 Q # Is it equal to 3.5 * Y?
 # # If so: Quit
 Y # Push Y
 = # Print without popping
 ÌV # Set Y to Y + 2

05AB1E, (削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RO}7Y*;ïQ#Y=ÌV

Try it online!

###Explanation### [YF6L.RO}7Y*;ïQ#Y=ÌV [ # Infinite loop start YF } # Y times... (Y defaults to 2) 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.) O # Sum 7Y*;ï # Push 3.5 * Y as an int Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

05AB1E, (削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RO}7Y*;ïQ#Y=ÌV

Try it online!

Explanation

[YF6L.RO}7Y*;ïQ#Y=ÌV
[ # Infinite loop start
 YF } # Y times... (Y defaults to 2)
 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.)
 O # Sum
 7Y*;ï # Push 3.5 * Y as an int
 Q # Is it equal to 3.5 * Y?
 # # If so: Quit
 Y # Push Y
 = # Print without popping
 ÌV # Set Y to Y + 2
added 1 character in body
Source Link
Datboi
  • 1.3k
  • 8
  • 9

05AB1E, (削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RO}7Y*;ïQ#Y=ÌV

Try it online!

###Explanation### [YF6L.RO}7Y*;ïQ#Y=ÌV [ # Infinite loop start YF } # Y times... (Y defaults to 2) 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.) O # # Sum 7Y*;ï # Push 3.5 * Y as an int Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

05AB1E, (削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RO}7Y*;ïQ#Y=ÌV

Try it online!

###Explanation### [YF6L.RO}7Y*;ïQ#Y=ÌV [ # Infinite loop start YF } # Y times... (Y defaults to 2) 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.) O # Sum 7Y*;ï # Push 3.5 * Y as an int Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

05AB1E, (削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RO}7Y*;ïQ#Y=ÌV

Try it online!

###Explanation### [YF6L.RO}7Y*;ïQ#Y=ÌV [ # Infinite loop start YF } # Y times... (Y defaults to 2) 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.) O # Sum 7Y*;ï # Push 3.5 * Y as an int Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

deleted 67 characters in body
Source Link
Datboi
  • 1.3k
  • 8
  • 9

05AB1E, 22(削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RRO})7Y*;ïsOQ#Y=ÌV7Y*;ïQ#Y=ÌV

Try it online! Try it online!

###Explanation### [YF6L.RRO})7Y*;ïsOQ#Y=ÌV7Y*;ïQ#Y=ÌV [ # # Infinite loop start YF } # # Y times... (Y defaults to 2) 6L.R # # Push a random number between 1 and 6 (why does this have to be so looooong ._.) ) # Wrap stack to arrayO # Sum 7Y*;ï # # Push 3.5 * Y as an int s # Swap the top two items on the stack O # Sum of the random numbers Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

05AB1E, 22 bytes

[YF6L.R})7Y*;ïsOQ#Y=ÌV

Try it online!

###Explanation### [YF6L.R})7Y*;ïsOQ#Y=ÌV [ # Infinite loop start YF } # Y times... (Y defaults to 2) 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.) ) # Wrap stack to array 7Y*;ï # Push 3.5 * Y as an int s # Swap the top two items on the stack O # Sum of the random numbers Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

05AB1E, (削除) 22 (削除ここまで) 20 bytes

-2 Bytes thanks to Emigna

[YF6L.RO}7Y*;ïQ#Y=ÌV

Try it online!

###Explanation### [YF6L.RO}7Y*;ïQ#Y=ÌV [ # Infinite loop start YF } # Y times... (Y defaults to 2) 6L.R # Push a random number between 1 and 6 (why does this have to be so looooong ._.) O # Sum 7Y*;ï # Push 3.5 * Y as an int Q # Is it equal to 3.5 * Y? # # If so: Quit Y # Push Y = # Print without popping ÌV # Set Y to Y + 2

Source Link
Datboi
  • 1.3k
  • 8
  • 9
Loading

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