塔 (Tower)
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
3 1 4 10 35 4 5 10 12 14 14 13
Sample output 1
120
Sample input 2
5 10 10 1 9 7 11 25 32 37 38 43 44 50 52 6 12 18 24 30 36 42 48 54 60
Sample output 2
6 11 17 22 -1 33 -1 44 -1 55
Notes
JOI 2023/2024 塔 · JCIOI · CC BY-SA 4.0
Tags
No tags yet