チーム戦 (Team Contest)
Unrated
日本語
Language
Contribute a translation- Time limit
- 2000 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 3 1 4 2 3 1 1 5 5 4 4 2 5 2 3
Sample output 1
13
Sample input 2
8 1 1 1 1 1 5 1 5 1 5 1 1 1 5 5 5 1 5 5 5 1 5 5 5
Sample output 2
15
Sample input 3
4 1 2 3 1 2 3 1 2 3 1 2 3
Sample output 3
-1
Notes
原典:JOI 2021/2022 春季トレーニング合宿 チーム戦 (Team Contest)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet