スタンプラリー 4 (Collecting Stamps 4)
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
3 2 1 2 2 3 1 3 6 1 4 5 4 7 2 8 9
Sample output 1
3 4
Sample input 2
8 1 1 2 6 1 6 3 8 4 5 5 3 4 7 2 7 8 4 5 3 6 2 9 1 4 6 3 8 5 2 9 4 7 1 64
Sample output 2
7
Sample input 3
9 4 4 3 5 3 8 1 5 8 1 7 6 2 4 9 6 9 2 7 12 9 4 8 7 1 20 5 8 7 4 13 5 9 10 3 7 8 6 39 81 73 79 64 52
Sample output 3
1 18 3 10 1 1
Notes
JOI 2024/2025 スタンプラリー 4 · JCIOI · CC BY-SA 4.0
Tags
No tags yet