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

Problem Description

The use of computers in the finance industry has been marked with controversy lately as programmed trading — designed to take advantage of extremely small fluctuations in prices — has been outlawed at many Wall Street firms. The ethics of computer programming is a fledgling field with many thorny is

...

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

Sample Input

3
1.2 .89
.88 5.1
1.1 0.15
4
3.1    0.0023    0.35
0.21   0.00353   8.13
200    180.559   10.339
2.11   0.089     0.06111
2
2.0
0.45

Sample Output

1 2 1
1 2 4 1
no arbitrage sequence exists

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

Solution originally posted at: Github by @codingsince1985