In this cops-and-robbers challenge, your task is to write a program h
that outputs "Hello Shue!". Next, you have to choose a string i
and also write a Shue program p
, so that p(i)=h
. Your score is len(p)+len(i)
. Your answer will contain the language of h
, i
and your score (please write the score as len(p)+len(i)=score
). Robbers will try to find p
. Note that any working p
, that is as long as your p
or shorter means that your answer is defeated, even if it wasn't the solution you intended. The undefeated cop answer with the smallest score wins (per language).
To understand this challenge let's look at an example submission in Python:
Python 3, score 47+22=69
(rint?KH++lloooShu++K'
Not included in the post is the following Shue program (p
):
print("Hello Shue")
(=p
?=(
K="
++=e
ooo=o
'=)
Note that there is a trailing space after the o
The first line is the program h
. Next are a series of replacement rules. Let's see how they work.
With the input (rint?KH++lloooShu++K'
(i
) we can get to h
like so
(rint?KH++lloooShu++K'
(rint(KH++lloooShu++K' - ?=(
print(KH++lloooShu++K' - (=p
print("H++lloooShu++K' - K="
print("H++lloooShu++K) - '=)
print("H++lloooShu++") - K="
print("H++llo Shu++") - ooo=o
print("Hello Shu++") - ++=e
print("Hello Shue") - ++=e
If your code h
contains equals signs, backslashes or newlines, escape them with \=
,\\
and \n
respectively in the Shue program p
(but not in the input i
). If your code contains nulls or non-unicode bytes, don't worry, Shue is byte-oriented.
i
as the cop \$\endgroup\$i
was allowed, you could just say that i="" and p="print('Hello Shue!')\n=print('Hello Shue!')" and win every time. \$\endgroup\$h
and whatever \$\endgroup\$