Dreamoon Likes Permutations
1330B1400· specialist2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
651 4 3 2 162 4 1 3 2 142 1 1 341 3 3 1122 1 3 4 5 6 7 8 9 1 10 231 1 1
Output
21 44 114 20012 100
58%
1330B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)