バス通学 (Bus)
Unrated
日本語
Language
Contribute a translation- Time limit
- 1000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 6 1 2 10 25 1 2 12 30 2 5 26 50 1 5 5 20 1 4 30 40 4 5 50 70 4 10 30 60 100
Sample output 1
-1 5 10 30
Sample input 2
3 8 1 2 1 5 1 3 0 1 1 3 2 8 2 3 2 3 2 3 3 4 2 3 4 5 2 3 5 6 2 3 6 7 6 3 4 5 6 7 8
Sample output 2
0 0 0 1 1 2
Notes
JOI 2013/2014 バス通学 (Bus) · JCIOI · CC BY-SA 4.0
Tags
No tags yet