Skip to main content
2 of 2
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/

QBasic, 37 bytes, by DLosc

PRINT 1E7 AND 11053811

R=LEN("*?RY")

I immediately noticed that all the letters of AND were present in the code. (In QBasic, the Boolean operators are bitwise, and true is -1.) Then I wrote a script to find possible combinations of operands by brute force, ignoring zeros to allow for E notation. Once I found a usable combination in the list, all that was left was to deal with the remaining characters.

A single space is printed before the number (where the minus sign would go for a negative number). The scrambled code also prints a space before the number it prints, and that is not described as part of its output, so I assume that that detail is insignificant or was mistakenly omitted.

PleaseStand
  • 5.6k
  • 2
  • 23
  • 44