高速道路の建設 (Construction of Highway)
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 1 2 3 4 5 1 2 2 3 2 4 3 5
Sample output 1
0 0 0 2
Sample input 2
10 1 7 3 4 8 6 2 9 10 5 1 2 1 3 2 4 3 5 2 6 3 7 4 8 5 9 6 10
Sample output 2
0 0 0 1 1 0 1 2 3
Notes
Tags
No tags yet