예제 #1
0
def test_part2_with_puzzle_input():
    assert 20220949 == part2(test_data_initial_state, text("chocolate_charts"))
예제 #2
0
def test_part1_with_puzzle_input():
    assert 35911 == part1(text('memory_maneuver'))
예제 #3
0
def test_part1_with_puzzle_input():
    assert 245280 == part1(text('beverage_bandits'))
예제 #4
0
def test_part2_with_puzzle_input():
    assert (86, 18) == part2(text('mine_cart_madness'))
예제 #5
0
def test_part1_with_puzzle_input():
    assert 1694 == part1(text("go_with_the_flow_program"))
def test_part2_with_puzzle_input():
    assert 886 == part2(text("the_sum_of_its_parts"))
예제 #7
0
def test_part2_with_puzzle_input():
    assert 8756 == part2(text("a_regular_map"))
def test_part1_with_puzzle_data():
    assert 2140 == answer(text('subterranean_sustainability'), 20)
def test_part2_with_puzzle_data():
    assert 1900000000384 == answer(text('subterranean_sustainability'), 50_000_000_000)
예제 #10
0
def test_part1_with_puzzle_input():
    assert 151754 == part1(text("response_record"))
예제 #11
0
def test_part2_with_puzzle_input():
    assert 19896 == part2(text("response_record"))
def test_part2_with_puzzle_input():
    assert "#412" == part2(text("no_matter_how_you_slice_it"))
def test_part1_with_puzzle_input():
    assert 118223 == part1(text("no_matter_how_you_slice_it"))
def test_part1_with_puzzle_input():
    assert 425 == part1(text("four_dimensional_adventure"))
예제 #15
0
def test_part2_with_puzzle_input():
    assert 709 == part2(text("chronal_calibration"))
예제 #16
0
def test_part1_with_puzzle_input():
    assert (235, 14) == part1(int(text("chronal_charge")))
예제 #17
0
def test_part1_with_puzzle_input():
    assert "GNJOCHKSWTFMXLYDZABIREPVUQ" == part1(text("the_sum_of_its_parts"))
예제 #18
0
def test_part2_with_puzzle_input():
    assert (237, 227, 14) == part2(int(text("chronal_charge")))
예제 #19
0
def test_part1_with_puzzle_input():
    assert 3633 == part1(text("a_regular_map"))
예제 #20
0
def test_part1_with_puzzle_input():
    assert 355918 == part1(text("settlers_of_the_north_pole"))
예제 #21
0
def test_part1_with_puzzle_input():
    assert (26, 92) == part1(text('mine_cart_madness'))
예제 #22
0
def test_part2_with_puzzle_input():
    assert 202806 == part2(text("settlers_of_the_north_pole"), 1_000_000_000)
예제 #23
0
def test_part2_with_puzzle_input():
    assert 10003 == part1(text("the_stars_align"))[0]
예제 #24
0
def test_part1_with_puzzle_input():
    assert 9633 == part1(text("inventory_management_system"))
예제 #25
0
def test_part2_with_puzzle_input():
    assert 18964204 == part2(text("go_with_the_flow_program"))
예제 #26
0
def test_part2_with_puzzle_input():
    assert "lujnogabetpmsydyfcovzixaw" == part2(
        text("inventory_management_system"))
예제 #27
0
def test_part2_with_puzzle_input():
    assert 17206 == part2(text('memory_maneuver'))
예제 #28
0
def test_part1_with_puzzle_input():
    assert 500 == part1(text("chronal_calibration"))
예제 #29
0
def test_part2_with_puzzle_input():
    assert 74984 == part2(text('beverage_bandits'))
예제 #30
0
def test_part1_with_puzzle_input():
    assert "1776718175" == part1(test_data_initial_state,
                                 int(text("chocolate_charts")))