13
2
Write 3 programs that do the following task:
Let A, B, C source codes of those three programs;
- if A runs BC is produced as output,
- if B runs CA is produced,
- if C runs AB is produced;
so each program writes a string (cycled for each program) and hides itself from it.
Additional, but essential constraints:
- standard loopholes are forbidden;
- each program must be at least 1 byte long;
- each of three programs must be written in a different language;
It would be nice if your submission had this format:
Language A (size of A) - Language B (size of B) - Language C (size of C) - Score
A B C
<extra stuff>
Winner is someone who get the minimum score, which is the sum of sizes of three programs.
It would be nicer to have the score come last (to fit with the leaderboard script) – Leaky Nun – 2017-07-12T08:41:05.107
1Related. Related. – Dead Possum – 2017-07-12T08:50:43.310
7I wouldn't recommend deadlines. – Erik the Outgolfer – 2017-07-12T09:39:39.620
Any requirement about
A
,B
andC
being different strings? For example, can the three strings be the same? If the program prints a newline after the output, can we not count that? – Luis Mendo – 2017-07-12T20:38:22.647It is not required
A
,B
,C
being different. Newlines are counted as part of output so newlines in the string are part of the program. – Blex – 2017-07-13T08:56:24.573Maybe someone could pick up my work. I don't have time to finish :C Fission quine with payload (this one can't have symbols "UDRL in payload)
– Dead Possum – 2017-07-24T07:07:13.250Ruby,Perl,Python mutual quines – Dead Possum – 2017-07-24T07:07:17.730
Is there anything to stop all three programs from just being
1
in languages that automatically evaluate and print an expression, and ignore input that isn't referenced? – xnor – 2017-10-23T16:33:49.697I revert the question to the original state since it misleads the original question. When I say
if A runs BC is produced as output
I meanBC
is catenation ofB
andC
andA
,B
andC
are strings. – Blex – 2018-01-13T20:43:12.243Trivial solutions like lang A inputs
0
and outputs00
and so on cyclically are possible but that sounds like taking advantage from that specific language hack. – Blex – 2018-01-13T20:45:24.637Related – FantaC – 2018-01-13T20:50:41.347
Does outputting nothing (empty string) count? Three empty programs – dylnan – 2018-01-13T21:16:17.970
"each program must be at least 1 byte long." So no empty strings. – Blex – 2018-01-13T21:36:07.953