finish to make 2020 compatible with run.py

This commit is contained in:
2025-07-30 11:17:26 +02:00
parent 9c76828788
commit 93d46909a7
3 changed files with 10 additions and 23 deletions

View File

@@ -52,7 +52,7 @@ def generate_floating_addresses(address):
if __name__ == "__main__":
with open("input.txt") as infile:
print(part1(infile))
infile.seek(0)
print(part2(infile))
import fileinput
lines = [x for x in fileinput.input()]
print(part1(lines))
print(part2(lines))