This problem is in Contest(s) below:
Contest 1062:2023-WE 百题大战02:顺序结构浮点
Contest 1039:Python程序设计大赛热身练习