Problem3447--【Div2】abc410d - XOR Shortest Walk

3447: 【Div2】abc410d - XOR Shortest Walk

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description




Sample Input Copy

3 3
1 2 4
2 3 5
1 3 2

Sample Output Copy

1

HINT

如果无法完成,记得打印-1哟!

Source/Category