cf/mirror

Permutation for Burenka

CF
1718D3300· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
4 3
1 4 3 2
5 0 7 0
6
9
1
4
5 3
1 2 5 4 3
0 5 10 0 0
3 9
1
8
11
5 2
1 4 3 2 5
0 0 0 0 0
7 9 1 5
6
100
4 2
4 1 3 2
0 5 3 0
2
4
6
Output
YES
NO
NO
YES
YES
NO
YES
YES
NO
NO
1718D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…