cf/mirror

Discarding Game

CF
1250G2300· international master3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
4 17
1 3 5 7
3 5 7 9
11 17
5 2 8 2 4 6 1 2 7 2 5
4 6 3 3 5 1 7 4 2 5 3
6 17
6 1 2 7 2 5
1 7 4 2 5 3
Output
0
 
2
2 4
-1
1250G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)