ビルの飾りつけ 3 (Building 3)
Unrated
日本語
Language
Contribute a translation- Time limit
- 1000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
4 1 1 2
Sample output 1
5
Sample input 2
8 1 1 2 1 2 3 1
Sample output 2
15
Notes
Tags
No tags yet