To alleviate the stress you surely experience during programming competitions, we invite you to play a fun browser-based game.
Your objective in the game will be to ﬁnd your way through a labyrinth. You win when you reach the ﬁnish tile.
The labyrinth is full of doors that will often block your way, and switches that can be used to open and close the doors. Every door and switch is marked by a letter (or a pair of letters) and a color. Pressing a switch toggles all doors that have the same marking.
Each of the two subproblems consists of 7 levels.
Send us your solutions to all 7 levels to solve the subproblem. Good luck!
To move, use the arrows on your keyboard or the numeric keypad. To push a button you’re standing on, press either “P”, the numeric keypad “5”, or Enter.
You’ll need a reasonably modern browser to play. Old versions of Internet Explorer probably won’t work.
There is no input.
Your steps through the labyrinth will be recorded as a string of letters ‘U’, ‘D’, ‘L’, ‘R’, and ‘P’ (meaning “up”, “down”, “left”, “right”, and “push”, respectively). Collect the solution strings for all 7 levels in a text ﬁle and submit it.
The output ﬁle must contain 7 whitespace-separated strings. The i-th string must be a solution for the i-th level in the subproblem.
Your output ﬁle must not contain more than 1,000,000 characters.