Problem3357--【Div2】abc396d - Minimum XOR Path

3357: 【Div2】abc396d - Minimum XOR Path

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

Description



Sample Input Copy

4 4
1 2 3
2 4 5
1 3 4
3 4 7

Sample Output Copy

3

HINT

Source/Category