Two permutations
323C2400· grandmaster6s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
33 1 23 2 111 2 3 3
Output
1
Sample 2of 2
Input
44 3 2 12 3 4 131 2 3 41 3 2 11 4 2 3
Output
112
58%
323C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)