スペルミス (Misspelling)
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
3 2 1 3 3 2
Sample output 1
5876
Sample input 2
5 6 1 2 1 5 2 4 5 4 5 3 4 3
Sample output 2
656981
Sample input 3
10 9 3 6 4 6 6 7 7 9 10 8 9 8 8 5 5 2 5 1
Sample output 3
206289833
Sample input 4
7 6 1 3 3 4 4 6 6 5 5 7 7 2
Sample output 4
7125651
Sample input 5
5 4 2 4 4 3 3 5 5 1
Sample output 5
61451
Notes
原典:JOI 2021/2022 春季トレーニング合宿 スペルミス (Misspelling)、情報オリンピック日本委員会。CC BY-SA 4.0。
Tags
No tags yet