This problem is in Contest(s) below:
Contest 1048:알고리즘및실습 2021년도 1학기 6장 문제
Contest 1071:2022년도 1학기 알고리즘및실습 6장 문제
Contest 1098:2023년도 1학기 알고리즘및실습 6장
Contest 1121:2024년도 1학기 알고리즘및실습 6장