Dungeon of Darkness
시간 제한1초메모리 제한1024 MB
양쪽에 기호가 표시된 n개의 문이 잇는 방들로 이루어진 던전에서 입구에서 현자까지 5n번 이하로 문을 통과해 이동한다.
문제
In his great quest to rescue princess Zelda and protect the kingdom of Hyrule from the clutches of the evil Ganondorf, you, the hero, have arrived in the Lost Woods to rescue an ancient sage. The spirits of the woods have decided to test your wits in a magic-infused dungeon. The dungeon consists of doors connecting two distinct rooms, each door marked by a glowing symbol on both sides (to simplify, each symbol is a number from to ). Each room is shrouded in complete darkness, making you unable to see anything other than the symbols. You enter the dungeon through a magic door that disappears upon entry, and the sage waits for you after door .
At the beginning of your quest, as well as every time you pass through a door, you see the symbols of all the doors that lead to and from the room which you are in. You also need to be quick of course, as the forces of Ganondorf do not wait. Going through doors a total of over times will be too slow and will cause Hyrule to fall to ruin!