Zhily and Permutation
2223E3500· legendary gm2.5s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
35 43 4 1 5 22 3 5 1 42 3 2 5 31 0 4 11 1 4 21 3 6 11 0 6 25 43 5 1 2 41 4 3 2 50 2 0 3 01 2 5 11 4 6 21 0 5 11 3 5 210 3010 1 7 3 2 8 4 9 6 51 7 3 2 8 9 5 4 10 64 0 6 3 0 2 1 5 2 41 10 11 101 10 11 31 4 11 101 10 11 91 1 4 102 4 51 0 7 41 9 10 42 6 31 5 7 61 6 7 91 2 7 41 4 7 21 1 2 11 5 7 82 0 31 2 7 51 7 10 61 6 8 71 3 4 31 8 9 92 4 51 1 4 41 0 9 42 1 21 6 11 101 5 9 101 2 4 71 1 11 11 2 11 3
Output
235200030000040206502653000335626
58%
2223E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…