ナン (Naan)
Unrated
日本語
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
2 5 2 7 1 8 2 3 1 4 1 5
Sample output 1
14 5 2 1
Sample input 2
7 1 1 2 3 4 5 6 7
Sample output 2
1 7 2 7 3 7 4 7 5 7 6 7 3 1 4 2 7 6 5
Sample input 3
5 3 2 3 1 1 1 1 2 2 1 1 2 2 1 2 1
Sample output 3
15 28 35 28 50 28 70 28 3 1 5 2 4
Notes
原典:JOI 2018/2019 春季トレーニング合宿 ナン (Naan)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet