This problem is in Contest(s) below:
Contest 1052:알고리즘및실습 2021년도 1학기 10장 문제
Contest 1075:2022년도 1학기 알고리즘및실습 10장 문제
Contest 1105:2023년도 1학기 알고리즘및실습 10장
Contest 1129:2024년도 1학기 알고리즘및실습 10장