409132: GYM103443 J Transportation Network

Memory Limit:256 MB Time Limit:3 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

J. Transportation Networktime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputExampleInput
2
4 1 1
1
6 2 3
1 4
Output
18
68

加入题单

上一题 下一题 算法标签: