展覧会 3 (Exhibition 3)
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
4 4 1 2 1 2 1 1 2 3 4 4 3 4
Sample output 1
2 2 1 2
Sample input 2
4 8 1 2 3 4 1 2 2 3 4 4 1 1 2 4 3 3 3 3 4 4
Sample output 2
4 4 3 2 4 1 1 3
Sample input 3
12 10 6 2 2 5 2 5 2 3 3 3 2 2 3 5 10 12 12 12 2 4 8 9 10 11 1 3 7 9 9 10 10 11
Sample output 3
6 5 5 6 5 3 6 5 5 3
Notes
JOI 2024/2025 展覧会 3 · JCIOI · CC BY-SA 4.0
Tags
No tags yet