cf/mirror

Playoff Fixing

CF
1837E2200· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 6
Input
2
1 2 3 4
Output
0
Sample 2of 6
Input
2
1 3 4 2
Output
1
Sample 3of 6
Input
1
-1 -1
Output
2
Sample 4of 6
Input
2
-1 -1 -1 -1
Output
16
Sample 5of 6
Input
3
-1 -1 -1 -1 2 -1 -1 -1
Output
768
Sample 6of 6
Input
0
1
Output
1
1837E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…