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