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