def cli_main() -> None: input_funcs = [partial(splitstrip, sep=","), partial(lmap, int)] data = aoc.load_and_process_input(INPUT, input_funcs) aoc.run_tests(TEST, TA1, TA2, A1, input_funcs, process_one, process_two) result_one = process_one(data) result_two = process_two(data) aoc.finish(result_one, A1, result_two, A2)
def cli_main() -> None: input_funcs = [parse_input] data = aoc.load_and_process_input(INPUT, input_funcs) aoc.run_tests(TEST, TA1, TA2, A1, input_funcs, process_one, process_two) result_one = process_one(data) result_two = process_two(data) aoc.finish(result_one, A1, result_two, A2)
def cli_main() -> None: input_funcs = [splitstriplines, make_grid] data = aoc.load_and_process_input(INPUT, input_funcs) aoc.run_tests(TEST, TA1, TA2, A1, input_funcs, process_one, process_two) result_one = process_one(data) print(result_one) data = aoc.load_and_process_input(INPUT, input_funcs) result_two = process_two(data) aoc.finish(result_one, A1, result_two, A2)