Rename the folder #01.

This commit is contained in:
2025-12-02 21:11:25 +01:00
parent 5ff222fd10
commit 66577e7d92
2 changed files with 0 additions and 0 deletions

22
01-secret-entrance/solve.py Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
import sys
position = 50
code = 0
for line in sys.stdin:
line = line.strip()
if line.startswith('L'):
position -= int(line[1:])
elif line.startswith('R'):
position += int(line[1:])
else:
raise Exception('weird line')
position %= 100
if not position:
code += 1
print(code)