GO Solution For UVa 10330 - Power Transmission. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

DESA is taking a new project to transfer power. Power is generated by the newly established plant in Barisal. The main aim of this project is to transfer Power in Dhaka. As Dhaka is a megacity with almost 10 million people DESA wants to transfer maximum amount of power through the network. But as al

...

You can find the full details of the problem Power Transmission at UVa Online Judge

Sample Input

4
10 20 30 40
6
1 2 5
1 3 10
1 4 13
2 3 5
2 4 7
3 4 20
3 1
1 2 3 4
2
50 100
1
1 2 100
1 1
1 2

Sample Output

37
50

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985