This problem is in Contest(s) below:
Contest 1034:入门班打卡题
Contest 1197:2026春季入门班练习