Ejemplo n.º 1
0
def main():
    input = []
    with open('day18_input.txt') as f:
        for line in f:
            input.append(line.strip())
    print("Part 1:", timed(part1, input))
    print("Part 2:", timed(part2, input))
Ejemplo n.º 2
0
def main():
    input = []
    length = 25
    with open('day9_input.txt') as f:
        for line in f:
            input.append(int(line.strip()))
    print("Part 1:", timed(part1, (input, length)))
    print("Part 2:", timed(part2, (input, length)))
Ejemplo n.º 3
0
def main():
    input = open('day19_input.txt').read()
    print("Part 1:", timed(part1, input))
    print("Part 2:", timed(part2, input))
Ejemplo n.º 4
0
def main():
    with open('day23_input.txt') as f:
        input = f.readline()
    print("Part 1:", timed(part1, input))
    print("Part 2:", timed(part2, input))
Ejemplo n.º 5
0
def main():
    with open('day6_input.txt') as f:
        input = f.read()
    input = input.split('\n\n')
    print("Part 1:", timed(part1, input))
    print("Part 2:", timed(part2, input))
Ejemplo n.º 6
0
def main():
    input = []
    with open('day16_input.txt') as f:
        input = f.read()
    print("Part 1:", timed(part1, input))
    print("Part 2:", timed(part2, input))