def main(): puzzle_input = adventofcode.read_input(20) adventofcode.answer(1, 4968, part1(puzzle_input)) adventofcode.answer(2, 16793, part2(puzzle_input))
def main(): puzzle_input = adventofcode.read_input(11) puzzle_input = [int(x) for x in puzzle_input.split(',')] adventofcode.answer(1, 1709, part1(puzzle_input)) adventofcode.answer(2, 'PGUEHCJH', part2(puzzle_input))
def main(): puzzle_input = adventofcode.read_input(4) adventofcode.answer(1, 451, count_valid_passphrases(puzzle_input, is_valid_one)) adventofcode.answer(2, 223, count_valid_passphrases(puzzle_input, is_valid_two))
def main(): puzzle_input = adventofcode.read_input(22) depth, target = parse_input(puzzle_input) adventofcode.answer(1, 11359, part1(depth, target)) adventofcode.answer(2, 976, part2(depth, target))
def main(): puzzle_input = adventofcode.read_input(16) # puzzle_input = [int(x) for x in puzzle_input] adventofcode.answer(1, '53296082', part1(puzzle_input))
def main(): puzzle_input = adventofcode.read_input(18) instructions = [parse_input_line(x) for x in puzzle_input] adventofcode.answer(1, 2951, part1(instructions)) adventofcode.answer(2, 7366, part2(instructions))
def main(): puzzle_input = adventofcode.read_input(6) puzzle_input = [int(x) for x in puzzle_input.split(',')] adventofcode.answer(1, 350605, part1(puzzle_input, 80)) adventofcode.answer(2, 1592778185024, part1(puzzle_input, 256))
def main(): puzzle_input = adventofcode.read_input(17) adventofcode.answer(1, 8646, part1(puzzle_input)) adventofcode.answer(2, 5945, part2(puzzle_input))
def main(): puzzle_input = adventofcode.read_input(7) puzzle_input = [int(x) for x in puzzle_input.split(',')] adventofcode.answer(1, 30940, part1(puzzle_input)) adventofcode.answer(2, 76211147, part2(puzzle_input))
def main(): puzzle_input = adventofcode.read_input(5) adventofcode.answer(1, 6856, part1(puzzle_input)) adventofcode.answer(2, 20666, part2(puzzle_input))
def main(): puzzle_input = adventofcode.read_input(12) state, rules = parse(puzzle_input) adventofcode.answer(1, 3798, part1(state, rules, 20)) adventofcode.answer(2, 3900000002212, part2(state, rules, 50000000000))
def main(): puzzle_input = adventofcode.read_input(6) adventofcode.answer(1, 119831, orbital_checksum(puzzle_input)) adventofcode.answer(2, 322, transfers(puzzle_input))