スキー 2 (Ski 2)
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 2 0 6 1 1 0 5 2 1 1 2
Sample output 1
8
Sample input 2
5 100000 0 6 1 1 0 5 2 1 1 2
Sample output 2
100010
Sample input 3
8 8 0 36 1 47 2 95 0 59 1 54 0 95 1 87 2 92
Sample output 3
108
Notes
原典:JOI 2023/2024 春季トレーニング合宿 スキー 2 (Ski 2)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet