예제 #1
0
def puzzle3Solution():
    print("-------------- Puzzle 3 -----------")
    input = extract("./puzzle3/input.txt")
    print("Part 1 Solution:")
    print(puzzle3(input, [[3, 1]]))
    print("Part 2 Solution:")
    print(puzzle3(input, [[1, 1], [3, 1], [5, 1], [7, 1], [1, 2]]))
예제 #2
0
def puzzle2Solution():
    print("-------------- Puzzle 2 -----------")
    input = extract("./puzzle2/input.txt")
    print("Part 1 Solution:")
    print(solution_v1(input))
    print("Part 2 Solution:")
    print(solution_v2(input))
예제 #3
0
def puzzle1Solution():
    print("-------------- Puzzle 1 -----------")
    input = extract("./puzzle1/input.txt")
    print("Part 1 Solution:")
    print(puzzle1(input, 1, 2020))
    print("Part 2 Solution:")
    print(puzzle1(input, 2, 2020))
예제 #4
0
def puzzle8Solution():
    print("-------------- Puzzle 8 -----------")
    input = extract("./puzzle8/input.txt")
    answer1, answer2 = puzzle8(input)
    print("Part 1 Solution:")
    print(answer1)
    print("Part 2 Solution:")
    print(answer2)
예제 #5
0
def puzzle7Solution():
    print("-------------- Puzzle 7 -----------")
    input = extract("./puzzle7/input.txt")
    answer1, answer2 = puzzle7(input, 'shiny gold')
    print("Part 1 Solution:")
    print(answer1)
    print("Part 2 Solution:")
    print(answer2)
예제 #6
0
def puzzle5Solution():
    print("-------------- Puzzle 5 -----------")
    input = extract("./puzzle5/input.txt")
    maxSeat, missingSeat = puzzle5(input)
    print("Part 1 Solution:")
    print(maxSeat)
    print("Part 2 Solution:")
    print(missingSeat)
예제 #7
0
def puzzle9Solution():
    print("-------------- Puzzle 9 -----------")
    input = extract("./puzzle9/input.txt")
    answer1, answer2 = puzzle9(input, 25)
    print("Part 1 Solution:")
    print(answer1)
    print("Part 2 Solution:")
    print(answer2)