Dead-End Detector
Unrated
English
Language
Contribute a translation- Time limit
- 5000 ms
- Memory limit
- 2048 MB (no extra memory)
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
6 5 1 2 1 3 2 3 4 5 5 6
Sample output 1
2 4 5 6 5
Sample input 2
8 8 1 2 1 3 2 3 3 4 1 5 1 6 6 7 6 8
Sample output 2
3 1 5 1 6 3 4
Tags
No tags yet