Time limit
1000 ms
Memory limit
65536 kB
OS
Linux
Source

Dungeon Master

POJ - 2251