cf/mirror

Stardew Valley

CF
1994F2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

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