This problem is in Contest(s) below:
Contest 2998:柯灵 提高班 流程控制、while,if 嵌套