This problem is in Contest(s) below:
Contest 1043:2020년도 2학기 자바프로그래밍 실습시험
Contest 1061:C++프로그래밍 2021년도 1학기 실습시험