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
示例#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
示例#9
0
def test_speak_n_say_six():
    nums = [3, 1, 2]
    assert speak_n_say(nums, 2020) == 1836
示例#10
0
def test_speak_n_say_five():
    nums = [3, 2, 1]
    assert speak_n_say(nums, 2020) == 438
示例#11
0
def test_speak_n_say_four():
    nums = [2, 3, 1]
    assert speak_n_say(nums, 2020) == 78
示例#12
0
def test_speak_n_say_three():
    nums = [1, 2, 3]
    assert speak_n_say(nums, 2020) == 27
示例#13
0
def test_speak_n_say_two():
    nums = [2, 1, 3]
    assert speak_n_say(nums, 2020) == 10