マスコットの片付け (Mascots)
Unrated
日本語
Language
Contribute a translation- Time limit
- 2000 ms
- Memory limit
- 256 MB
- Submissions
- 0
- Correct
- 0
- Solved by
- 0
- AC rate
- —
Statement
Examples
Sample input 1
2 3 2 1 2 2 2
Sample output 1
8
Sample input 2
3 3 2 1 1 3 3
Sample output 2
5040
Notes
Tags
No tags yet