This commit is contained in:
Simon Junod
2025-12-01 08:19:52 +01:00
commit ac521091a6
3 changed files with 4097 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)

16
1/b.py Normal file
View File

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

4068
1/input Normal file

File diff suppressed because it is too large Load Diff