コード例 #1
0
def test_9():
    n_players = 9
    last_marble = 92
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 107
コード例 #2
0
def test_6():
    n_players = 30
    last_marble = 5807
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 37305
コード例 #3
0
def test_8():
    n_players = 1
    last_marble = 48
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 95
コード例 #4
0
def test_5():
    n_players = 21
    last_marble = 6111
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 54718
コード例 #5
0
def test_1():
    n_players = 9
    last_marble = 25
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 32
コード例 #6
0
def test_4():
    n_players = 17
    last_marble = 1104
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 2764
コード例 #7
0
def test_3():
    n_players = 13
    last_marble = 7999
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 146373
コード例 #8
0
def test_2():
    n_players = 10
    last_marble = 1618
    high_score = day9.play_marbles(n_players, last_marble)
    assert high_score == 8317