The Challenge
Write two programs P
and Q
such that:
P
andQ
are written in the same language- The output of
P
isQ
- The output of
Q
isP
P
andQ
are both non-empty
Simple enough. Surely that's been done here before. Where this gets interesting is the scoring.
Scoring
P
andQ
are selfish, they don't want to sheir their precious characters! The primary means of scoring is the number of source characters existing in bothP
andQ
. The lower the number the better.- If two programs share the same number of characters, the sum length of their programs will be the tie breaker.
Clarification and Example
There's two ways to interpret this and I feel an example would best explain which is correct.
We say the programs aabb
and bbcc
share a single character, b
, NOT two characters b
and b
P = Q = 1
. \$\endgroup\$