题解 | 小红的字符生成
import sys result = "a" * int(input()) def transfer_1_time(data): if len(data) <= 1: return data elif data[0] == data[1]: return chr(ord(data[0]) + 1) + transfer_1_time(data[2:]) else: return data while len(result) != 1 and result[0] == result[1]: result = transfer_1_time(result) print(result)