11
1
Objective:
Code two programs where each of the programs outputs both source codes interlaced per character like a zipper, a Double-slit Quine. The output from a Double-slit Quine is starting with the first character from the source code of the first program. If the source code of one of the programs is shorter in length than the other, then the rest of the output must be filled with the rest of the longer source code.
Rules:
- You can use any programming language for both programs, not necessary the same programming language for both.
- Your programs should not take any input from a file, file name, network, the other program or anything else.
Mandatory criteria:
- There is a catch, somewhere in the output the word
QUINE
in capital letters must exist, uninterrupted. - You need to state what two programming languages you are using. If you are using the same programming language for both, then you only need to state one programming language.
- Both programs should be able to execute, or be interpreted, respectively independent of the other program.
Example:
Having this example source code of program one:
"QIE"
Having this example source code of program two:
"UN"
Then the valid Double-slit Quine output from both programs must be:
""QUINE""
This is code-golf, the least bytes when summing the length of both source codes, and obviously also the length of each programs output, wins!
Each individual program doesn't have to be a quine also, correct? And must each program contain at least one character? – mbomb007 – 2015-05-29T20:25:50.230
@mbomb007 That is correct. Each individual program should output both source code characters like a zipper from start to end. Well, I guess you'll need at least 1 byte in a programing language to output QUINE? The output from both programs must be identical. – Plarsen – 2015-05-29T20:28:18.233
I'm not sure I understand the rest of the output must be filled with the rest of the longer source code correctly. How would
A
andXYZ
be interleaved?AXYZ
? – Dennis – 2015-05-29T20:29:54.037@Dennis Just like
.+
orz
works – Optimizer – 2015-05-29T20:30:56.483@Dennis Correct. What is left from the longer source code when the shorter runs out of bytes must be appended to the output from both programs. – Plarsen – 2015-05-29T20:31:15.700
Must the two programs have a Levenshtein distance of at least 1? – quintopia – 2015-12-25T02:29:36.497
@quintopia I don't think this task is possible with two identical programs, since the output must contain the word
QUINE
. – Dennis – 2015-12-25T03:17:02.047@Dennis I'm thinking you are right. – quintopia – 2015-12-25T03:21:38.887