Example #1
0
def main(argv: List):
    ih = InputHandler(join(dirname(__file__), argv[0]))
    ih.build_inputs()
    a = Aero(ih.seats)
    a.calc_seat_values()
    print(a.get_highest_seat_id())
    print(a.get_missing_seat_id())
Example #2
0
def main(argv: List):
    ih = InputHandler(join(dirname(__file__), argv[0]))
    ih.build_inputs()
    cb = CoolBoy(ih.numerals)
    print(cb.part_a())
    print(cb.part_b())
Example #3
0
def main(argv: List):
    ih = InputHandler(join(dirname(__file__), argv[0]))
    ih.build_inputs()
    s = Sleddie(ih.grid, ih.max_row, ih.max_base_col, SLOPES)
    s.calc_all_slope_tree_hits()
    print(s.slope_multiple)
Example #4
0
def main(argv: List):
    ih = InputHandler(join(dirname(__file__), argv[0]))
    ih.build_inputs()