This problem is in Contest(s) below:
Contest 1103:2023년도 1학기 알고리즘및실습 8장
Contest 1127:2024년도 1학기 알고리즘및실습 8장
Contest 1050:알고리즘및실습 2021년도 1학기 8장 문제
Contest 1073:2022년도 1학기 알고리즘및실습 8장 문제