cf/mirror

Infinite Card Game

CF
1895E2300· international master3s512 MB⌨ stdin/stdout

Examples

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