mirror of
https://github.com/thib8956/advent-of-code.git
synced 2025-08-24 08:21:57 +00:00
finish to make 2020 compatible with run.py
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user