cf/mirror

SlavicG's Favorite Problem

CF
1760G1700· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
5 1 4
1 3 1
2 3 2
4 3 3
3 5 1
2 1 2
1 2 2
6 2 3
1 2 1
2 3 1
3 4 1
4 5 3
5 6 5
Output
YES
NO
YES
1760G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…