cf/mirror

Subtangle Game (Hard Version)

CF
2005E22500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
2 2 3
1 2
1 3 6
4 6 2
2 2 4
1 2
1 1 3 2
4 2 5 1
2 4 2
1 2
3 4
5 6
7 8
8 8
Output
N
T
N
2005E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)