# #NOIPS2017E. 宝藏

ID: 75 Type: Default 1000ms 256MiB Tried: 10 Accepted: 6 Difficulty: 9 Uploaded By: Tags>NOIP 提高组2017

# 宝藏

## 输出格式

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

4

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

5