宇宙船 (Spaceships)
Unrated
日本語
Language
Contribute a translation- Time limit
- 10000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
6 5 1 2 4 3 2 6 1 4 3 1 6 4 3 2 6
Sample output 1
-1 4
Sample input 2
8 36 1 1 2 1 6 5 1 7 8 3 5 6 1 5 4 1 8 1 3 7 2 3 3 8 3 1 8 1 3 2 1 4 1 3 8 5 3 4 3 2 4 3 6 8 1 2 5 3 6 8 2 8 3 1 4 3 6 8 3 6 3 2 3 3 1 2 1 4 3 3 2 6 1 8 3 3 1 7 3 1 6 3 5 4 2 2 2 5 1 3 6 1 2 7 3 1 4 3 1 5 3 6 7
Sample output 2
5 2 -1 1 1 2 -1 5 4 -1 5 2 5 3 5 4 3 5 6
Notes
JOI 2012/2013 宇宙船 (Spaceships) · JCIOI · CC BY-SA 4.0
Tags
No tags yet