TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
4 3
0 3
2
3 3
0 3
4
5 200 1 2
0 1 2 3

Sample Output 1

1 2
Mission Impossible
1 2 4 3

Hints

In the second sample, no matter which button the hero pressed first, the button would always pop up before he press the other button. So there is no way to make all
the button pressed down.

Problem Source

Migrated from old NTUJ.

ACM ICPC Dalian 2011

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 65536 200