cf/mirror

Alice's Adventures in Cards

CF
2028D2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
2
3
1 3 2
2 1 3
1 2 3
4
2 3 1 4
1 2 3 4
1 4 2 3
Output
YES
2
k 2
q 3
NO
2028D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…