기출 문제 / 삼성 2023 First Half Afternoon Problem 1
M participants are taking part in a maze escape game.
The maze is structured as follows: