cf/mirror

Nene and the Passing Game

CF
1956F3000· legendary gm4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
2
1 1
1 1
2
1 1
2 2
3
1 3
1 3
1 3
5
1 1
2 2
1 5
2 2
1 1
6
1 2
5 5
2 3
2 3
2 2
1 2
Output
2
2
2
1
3
1956F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…