Consider a question written in plain English whose answer involves two reasonably accurate (but potentially clever) words or phrases that can be separated by the word 'and':
Q: What are the two sides of a coin? A: heads and tails
Q: What are the best ways to travel? A: airplane and jetpack
Q: Why is a raven like a writing desk? A: because there is a 'b' in both and an 'n' in neither
Write a program which, when run normally, outputs such a question.
When every other character is removed from the program starting with the second character and the result is re-run, the output should be whatever is to the left of the 'and' in the answer.
When every other character is removed from the program starting with the first character and the result is re-run, the output should be whatever is to the right of the 'and' in the answer.
(The 'and' itself is not output.)
If the program is
and its output is
What are the two sides of a coin?
Then the output of
heads, and the output of
123456789 should be
Rules about questions and answers
- You may use my example questions but I encourage you to make up your own.
- The question and the two answer parts:
- must all be distinct
- should be common grammatical meaningful English
- may only contain printable ASCII (hex 20 to 7E)
- Ideally the question will be capitalized and punctuated (but the answers do not need to be).
- The question must be at least 30 character long and have entropy above or equal to 3.5. (Type in string, hit calculate, look for last H(X).)
- The two answer parts (not including the
[space]and[space]between them) must each have at least 5 characters with entropy above or equal to 2.
- The word 'and' may appear in either answer part.
Rules about code
- None of the 3 code snippets may:
- contain comments or anything else traditionally ignored by the compiler/interpreter (don't worry about putting an extra semicolon or two in, but if you think it's a comment it probably is)
- exit the program in mid-execution
- The code may contain any characters, including Unicode and non-printable ASCII.
- It may have an odd or even number of characters.
- Output goes to stdout or a file or whatever seems reasonable. There is no input.
Since I wan't to encourage golfed answers but I want to encourage clever answers even more, the scoring will be something in between code-golf and popularity contest:
(upvotes - downvotes) - floor((bytes in code that outputs question) / 3)
The highest score wins.
(Use http://mothereff.in/byte-counter as a byte counter.)