伝説の団子食通 (Legendary Dango Eater)
Unrated
日本語
Language
Contribute a translation- Time limit
- 2500 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 2 1 2 1 2 4 3 1 5 2 4
Sample output 1
7 2
Sample input 2
5 2 3 2 1 2 4 3 1 5 2 4
Sample output 2
2 0
Sample input 3
9 4 50 24 26 89 45 84 72 15 31 66 1 9 2 8 4 6 5 6
Sample output 3
3 2 1 1
Notes
JOI 2025/2026 伝説の団子食通 · JCIOI · CC BY-SA 4.0
Tags
No tags yet