-
It was the easiest question on the list. You just have to sort the array and swap the middle elements.
P.S. : Next time pay attention to the example test case.
-
xor each character of the input string with 18.
18 was mentioned in the problem code EXCL18 and in the problem statement. Also the girl's name was ROXy.
-
An interstellar reference (The watch was coded in morse). If you're not a movie buff, the input constraints are the letters of Samuel Morse.
Oh, and in '14 interstellar came out. Just sayin. Watch that movie if you haven't.
-
Go back to Euristica website. You'll find an old saying 'Divide by 2 and add 5' encoded in binary there.
-
Credits: Pascal (See what we did there ^_^).
Also the python code for the same.
import sys
for s in list(sys.stdin):
print(eval(s.strip().replace('?', '-').replace('!', '*').replace('%', '+').replace('$', '/')))