テレポーター 2 (Teleporter 2)
Unrated
日本語
Language
Contribute a translation- Time limit
- 3500 ms
- Memory limit
- 1024 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
8 4 1 1 4 3 2 3 5 3 6 2 5 8 2
Sample output 1
4
Sample input 2
12 7 2 1 5 3 4 8 2 2 4 5 2 4 8 7 9 4 9 11 7 3 10 5
Sample output 2
6
Sample input 3
6 3 2 1 4 2 2 5 4 3 6 3
Sample output 3
0
Notes
JOI 2025/2026 テレポーター 2 · JCIOI · CC BY-SA 4.0
Tags
No tags yet