This problem is in Contest(s) below:
Contest 1038:2020년도 1학기 C++프로그래밍