ふたつの料理 (Two Dishes)
Unrated
日本語
Language
Contribute a translation- Time limit
- 5000 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
4 3 2 1 1 3 8 1 2 13 1 1 13 1 3 6 1 2 11 1 2 15 1
Sample output 1
6
Sample input 2
5 7 16 73 16 17 73 10 20 73 1 14 73 16 18 73 10 3 73 2 10 73 7 16 73 19 12 73 4 15 73 15 20 73 14 15 73 8
Sample output 2
63
Sample input 3
9 11 86 565 58 41 469 -95 73 679 28 91 585 -78 17 513 -63 48 878 -66 66 901 59 72 983 -70 68 1432 11 42 386 -87 36 895 57 100 164 10 96 812 -6 23 961 -66 54 193 51 37 709 82 62 148 -36 28 853 22 15 44 53 77 660 -19
Sample output 3
99
Notes
原典:JOI 2018/2019 春季トレーニング合宿 ふたつの料理 (Two Dishes)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet