This problem is in Contest(s) below:
Contest 1089:2022년도 2학기 자바프로그래밍 과제 06
Contest 1122:2024년도 1학기 C++프로그래밍 과제 3
Contest 1064:2021년도 2학기 자바프로그래밍 과제 07
Contest 1113:2023년도 2학기 자바프로그래밍 과제 06