← Home
test 66 failed: not all cities reachable from the capital with reported repairs
input:
4 8
2 1 0
4 3 0
4 1 0
3 4 1
1 3 1
4 2 0
2 3 0
2 4 1

output:
2
5 8
expected minimal repairs: 2
reference output:
2
5 8