星座 3 (Constellation 3)
Unrated
日本語
Language
Contribute a translation- Time limit
- 1000 ms
- Memory limit
- 512 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 1 3 4 2 3 3 1 5 3 4 3 2 2 4 2
Sample output 1
2
Sample input 2
7 5 6 2 3 6 7 6 5 7 7 5 3 3 7 3 7 10 1 7 6 4 7 8
Sample output 2
16
Sample input 3
8 6 8 5 7 3 4 2 1 10 8 2 9 6 6 7 8 3 18 5 8 17 8 5 3 5 5 3 5 4 8 1 8 13 1 7 5 7 4 13
Sample output 3
44
Notes
原典:JOI 2019/2020 春季トレーニング合宿 星座 3 (Constellation 3)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet