Problem3429--【Div2】abc408e - Minimum OR Path

3429: 【Div2】abc408e - Minimum OR Path

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

Description




Sample Input Copy

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

Sample Output Copy

3

Source/Category