2024-11-02 18:13:20 +01:00
|
|
|
#!/bin/python3
|
2024-11-22 18:03:02 +01:00
|
|
|
import sys,re
|
2024-11-02 18:13:20 +01:00
|
|
|
from pprint import pprint
|
2024-11-24 19:21:15 +01:00
|
|
|
sys.path.insert(0, '../../')
|
2024-12-05 19:47:18 +01:00
|
|
|
from fred import list2int,get_re,nprint,lprint,loadFile
|
2024-11-02 18:13:20 +01:00
|
|
|
|
2024-11-22 18:03:02 +01:00
|
|
|
input_f = 'test'
|
2024-11-02 18:13:20 +01:00
|
|
|
|
2024-11-22 18:03:02 +01:00
|
|
|
part = 1
|
2024-11-02 18:13:20 +01:00
|
|
|
#########################################
|
|
|
|
# #
|
|
|
|
# Part 1 #
|
|
|
|
# #
|
|
|
|
#########################################
|
|
|
|
|
2024-11-24 19:14:52 +01:00
|
|
|
if part == 1:
|
|
|
|
with open(input_f) as file:
|
|
|
|
for line in file:
|
2024-11-15 17:13:32 +01:00
|
|
|
|
2024-11-02 18:13:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#########################################
|
|
|
|
# #
|
|
|
|
# Part 2 #
|
|
|
|
# #
|
|
|
|
#########################################
|
2024-11-22 18:03:02 +01:00
|
|
|
if part == 2:
|
|
|
|
exit()
|