The Silk Road . . . with Robots!
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 1 20 2 15 15 2 40 50 1 50 2 80 20 2 70 30
Sample output 1
0 10 35 50 50 60
Tags
No tags yet