Appending Permutations (Easy Version)
2124F12300· international master3s1024 MB⌨ stdin/stdout
Examples
Sample 1of 2multi-test • hover to link
Input
73 03 31 12 13 13 21 12 16 22 34 22 31 22 21 14 32 23 24 23 22 33 3
Output
70165045
Sample 2of 2multi-test • hover to link
Input
1100 169 69
Output
381055417
58%
2124F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)