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