cf/mirror

Permutations

CF
124B1400· specialist1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
6 4
5237
2753
7523
5723
5327
2537
Output
2700
Sample 2of 3
Input
3 3
010
909
012
Output
3
Sample 3of 3
Input
7 5
50808
36603
37198
44911
29994
42543
50156
Output
20522
124B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)