def test_speak_n_say_one():
    nums = [1, 3, 2]
    assert speak_n_say(nums, 30000000) == 2578
def main():
    nums = [0, 14, 6, 20, 1, 4]
    print(speak_n_say(nums, 30000000))
def test_speak_n_say_five():
    nums = [3, 2, 1]
    assert speak_n_say(nums, 30000000) == 18
def test_speak_n_say_six():
    nums = [3, 1, 2]
    assert speak_n_say(nums, 30000000) == 362
def test_speak_n_say_three():
    nums = [1, 2, 3]
    assert speak_n_say(nums, 30000000) == 261214
def test_speak_n_say_four():
    nums = [2, 3, 1]
    assert speak_n_say(nums, 30000000) == 6895259
Exemplo n.º 7
0
def test_speak_n_say_one():
    nums = [1, 3, 2]
    assert speak_n_say(nums, 2020) == 1
def test_speak_n_say_two():
    nums = [2, 1, 3]
    assert speak_n_say(nums, 30000000) == 3544142
Exemplo n.º 9
0
def test_speak_n_say_six():
    nums = [3, 1, 2]
    assert speak_n_say(nums, 2020) == 1836
Exemplo n.º 10
0
def test_speak_n_say_five():
    nums = [3, 2, 1]
    assert speak_n_say(nums, 2020) == 438
Exemplo n.º 11
0
def test_speak_n_say_four():
    nums = [2, 3, 1]
    assert speak_n_say(nums, 2020) == 78
Exemplo n.º 12
0
def test_speak_n_say_three():
    nums = [1, 2, 3]
    assert speak_n_say(nums, 2020) == 27
Exemplo n.º 13
0
def test_speak_n_say_two():
    nums = [2, 1, 3]
    assert speak_n_say(nums, 2020) == 10