Escape Room : The Deadly Puzzle Game

Limits 1s, 512 MB

Context: An escape room, also known as an escape game or puzzle room, is an immersive challenge where participants collaborate to unravel clues and complete tasks within a themed environment. The goal is to achieve a specific objective within a time limit, often escaping from scenarios like castles, space stations, or ancient pyramids. Despite the name, players are never truly confined, and any threats are fictional. A Game Master manages the experience, setting up the room, explaining rules, and providing hints. These adventures promote teamwork and critical thinking and are popular in settings ranging from Victorian apartments to futuristic realms.
The Story: Our story unfolds with three intelligent friends: Alim, Shanto and Khalid. Eager to embark on an adventure of epic proportions, they find themselves immersed in a puzzle game of a different kind. Little do they know, the game's virtual arena holds the key to the ultimate test of their skills and resilience.

As the game begins, Alim, Shanto, and Khalid are trapped in a mysterious room. As the door closes, their only hope is to unravel the mysterious riddles that lie before them. Each puzzle solved brings them one step closer to freedom, while failure means an eternity trapped in this room.

As time passes, Alim, Shanto, and Khalid must rely on their collective wits and problem-solving abilities to decipher the mysterious clues scattered throughout the room. Each twist and turn reveals new challenges, each more confusing than the last.

Will they be able to escape the room? or the door of the room will seal permanently before they escape, and we lost them in this game room.

To escape from this room, they need to solve a minimum number of puzzles within the given time limit for each round of the game. Only their problem-solving abilities, cunning, and cooperation will guide them through this perilous journey.

Input

Output

Sample

InputOutput
2
5 15 3
5
3
6
9
4
4 10 3
6
5
7
9
ESCAPE THE ROOM!
OPPS! 

Explanation: