This problem is in Contest(s) below:
Contest 1600:NJ24春季信息学奥赛-6
Contest 1602:24春季信奥编程入门16
Contest 1740:25春季信奥编程入门20
Contest 1746:25春季信奥编程入门26
Contest 1748:25春季信奥编程入门28