Пример #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")))