This is a code-shuffleboard answer-chaining challenge, where the answers will aim to, together, output the lyrics to this beloved 80s song.
This is the full lyrics of the song, line by line. The first answer will contain a program that will output the first line of the song (We're no strangers to love
). The second will do the same, but for the second line (You know the rules and so do I
) and so on. Some answers (the 7th, 14th, 22nd, 29th, 36th, 45th, 51st, 54th, 61st and 68th) will output a blank line.
Each answers' program, however, must be irreducible, meaning that it must not output the correct line if any non-zero number of characters (not necessarily consecutive) are removed.
print("We're no strangers to love")
is an irreducible Answer 1 in Python 3if 1: print("We're no strangers to love")
is not, as we can removeif 1:
and it'll still output the first lineprint("We're no str" + "angers t" + "o love")
is also not, as the two" + "
s can be removed, and it'll still produce the correct output.
Let \$\bar x_i\$ be the arithmetic mean of the lengths of the first \$i\$ lines, to 1 decimal place. This sequence begins \$26, 28, 32, 34, 34.6, 33\$ and converges to \$\bar x_{74} = 24.3\$ by the end of the song. Each answer has a score, which will eventually determine the overall winner. The score for the \$i\$th answer is defined as:
If the \$i\$th answer is \$n\$ bytes long, its score is \$|n - \bar x_i|\$
So, if the first answer is 10 bytes long, its score is \$16\$, and if the 72nd answer is 2 bytes long, its score is \$|2 - 24.2| = 22.2\$. A user's overall score is the arithmetic mean of the scores of all their answers. The user with the lowest overall score wins.
The full sequence of \$\bar x_i\$; the left column is \$i\$, the right is \$\bar x_i\$. Collapse the "Arguments" element for easier viewing.
Rules
You may either:
- Output the line to STDOUT, or your language's closest alternative; or,
- Return the line from a function
You should take no input, aside from an optional empty input
Each language may only be used once. This includes different versions of a language, such as Python 2 and Python 3. Generally, if two languages are considered versions of each other, such as Seriously and Actually, then only one is allowed to be used.
You may not post 2 answers in a row
You must wait 1 hour between answers
The challenge will end when the 74th answer is posted, at which point I will accept an answer of the winner's choice
Please format your answer as the following:
# [Num]. [Lang], score [score]
code
[Try it online!]
[Everything else]