cf/mirror

Subtangle Game (Easy Version)

CF
2005E12100· master2s256 MB⌨ stdin/stdout

Examples

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