とてもたのしいカードゲーム (Card Game Is Great Fun)
Unrated
日本語
Language
Contribute a translation- Time limit
- 3000 ms
- Memory limit
- 1280 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
5 1 3 2 4 2 9 1 4 6 2 3 3 2 2 1
Sample output 1
15
Sample input 2
8 11 5 31 2 8 19 2 9 2 11 8 45 4 8 22 4 2 23 6 9 58 6 2 5
Sample output 2
160
Notes
Tags
No tags yet