1 条题解
-
0admin LV 5 MOD RP++ 机房蒟蒻 tayz @ 2024-08-24 15:07:40
第一发题解
这个题的坑在于输入行数不确定,因此我们需要准确地获取我们需要的行数
origin: str = """ Love in your eyes, sitting silent by my side Going on, holding hands, walking through the nights Hold me up, hold me tight, lift me up to touch the sky Teaching me to love with heart, helping me open my mind I can fly, I'm proud that I can fly To give the best of mine, 'til the end of the time Believe me I can fly, I'm proud that I can fly To give the best of mine, the heaven in the sky Stars in the sky, wishing once upon a time Give me love, make me smile, 'til the end of life Hold me up, hold me tight, lift me up to touch the sky Teaching me to love with heart, helping me open my mind I can fly, I'm proud that I can fly To give the best of mine, 'til the end of the time Believe me I can fly, I'm proud that I can fly To give the best of mine, the heaven in the sky Can't you believe that you light up my way No matter how that ease my path, I'll never lose my faith See me fly, I'm proud to fly up high Show you the best of mine, 'til the end of the time Believe me I can fly, I'm singing in the sky Show you the best of mine, the heaven in the sky Nothing can stop me Spread my wings... so wide """.strip().split() if __name__ == '__main__': length: int = len(origin) current: list = [] while length != len(current): s = input().strip().split() current += s if length != len(origin): raise ValueError("Invalid input") flag: bool = True for i in range(length): if current[i] != origin[i]: flag = False print(f"{current[i]}->{origin[i]}") if flag: print("No corrections.")
upd on 2024/9/26: 测评环境更新,修改代码
- 1
信息
- ID
- 1007
- 难度
- 2
- 分类
- (无)
- 标签
- (无)
- 递交数
- 20
- 已通过
- 2
- 通过率
- 10%
- 上传者