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

Problem Description

In China, people use a pair of chopsticks to get food on the table, but Mr. L is a bit different. He uses a set of three chopsticks – one pair, plus an EXTRA long chopstick to get some big food by piercing it through the food. As you may guess, the length of the two shorter chopsticks should be as c

...

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

Sample Input

1
1 40
1 8 10 16 19 22 27 33 36 40 47 52 56 61 63 71 72 75 81 81 84 88 96 98
103 110 113 118 124 128 129 134 134 139 148 157 157 160 162 164

Sample Output

23

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

Solution originally posted at: Github by @codingsince1985