This problem is in Contest(s) below:
Contest 1039:Python程序设计大赛热身练习
Contest 1061:2023-WE 百题大战01:入门,顺序结构(整型)