Prehistoric Programs
Unrated
English
Language
Contribute a translation- Time limit
- 6000 ms
- Memory limit
- 2048 MB (no extra memory)
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
2 ())())() ((()
Sample output 1
2 1
Sample input 2
5 ( )) (( )) (
Sample output 2
1 5 3 2 4
Sample input 3
2 (( )
Sample output 3
impossible
Tags
No tags yet