Days 1 and 2

This commit is contained in:
Simon Junod
2025-12-01 08:19:52 +01:00
commit 8cfa72a7e9
5 changed files with 62 additions and 0 deletions

13
1/a.py Normal file
View File

@@ -0,0 +1,13 @@
with open("input", "r") as f:
lines = f.read().splitlines()
p = 50
for line in lines:
d = line[0]
n = int(line[1:])
if d == "L":
n *= -1
p += n
p %= 100
print(p)