2024-11-02 18:13:20 +01:00
|
|
|
#!/bin/python3
|
2024-12-07 21:10:04 +01:00
|
|
|
import sys,time,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-12-07 21:10:04 +01:00
|
|
|
start_time = time.time()
|
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:
|
2024-11-02 18:13:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
#########################################
|
|
|
|
# #
|
|
|
|
# Part 2 #
|
|
|
|
# #
|
|
|
|
#########################################
|
2024-11-22 18:03:02 +01:00
|
|
|
if part == 2:
|
|
|
|
exit()
|
2024-12-07 21:10:04 +01:00
|
|
|
|
|
|
|
print("--- %s seconds ---" % (time.time() - start_time))
|