Coded Handshake
A secret handshake can be encoded as a number, where each enabled bit adds one action. The function commands receives number and returns the list of actions it represents. Bits 1, 2, 4, and 8 add wink, double blink, close your eyes, and jump; bit 16 reverses the order of the commands.
Примеры
Ввод
1Вывод
["wink"]Ввод
2Вывод
["double blink"]Ввод
4Вывод
["close your eyes"]Нужно реализовать
def commands(number: int) -> list[str]:
Теги
listsmath
Inicia sesión para ver tu historial de envíos
Iniciar sesiónInicia sesión para usar el AI Mentor
Iniciar sesiónTests12
Visible tests
Prueba oculta 7
Prueba oculta 8
Prueba oculta 9
Prueba oculta 10
Prueba oculta 11
Prueba oculta 12
They run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.
Focus radio
Paused · SomaFM · Fluid