cf/mirror

Permutation Blackhole

CF
2129D2600· international gm3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
3
-1 -1 1
3
-1 -1 -1
4
-1 2 -1 0
4
-1 0 1 -1
5
-1 3 -1 0 -1
5
4 4 4 4 4
5
1 0 1 2 0
6
-1 1 -1 -1 3 0
13
-1 -1 -1 -1 -1 -1 2 -1 -1 -1 -1 -1 -1
Output
2
6
4
3
8
0
4
10
867303072
2129D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)