スタンプラリー 5 (Collecting Stamps 5)
Unrated
日本語
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 2 2 2 0 1 3 1 2 2 3 2 4 4 5
Sample output 1
2 3 4 2 2
Sample input 2
5 1 0 1 2 1 2 1 2 2 3 3 4 4 5
Sample output 2
2 1 2 0 1
Sample input 3
7 6 2 3 0 4 1 3 4 1 2 2 3 2 4 1 5 1 6 6 7
Sample output 3
2 2 7 5 1 2 5
Notes
JOI 2025/2026 スタンプラリー 5 · JCIOI · CC BY-SA 4.0
Tags
No tags yet