GO Solution For UVa 10120 - Gift?!. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

There is a beautiful river in a small village. N rocks are arranged in a straight line numbered 1 to N from left bank to the right bank, as shown below.

[LeftBank]− [Rock1]− [Rock2]− [Rock3]− [Rock4] . . . [RockN ]− [RightBank]

The distance between two adjacent rocks is exactly 1 meter, while the

...

You can find the full details of the problem Gift?! at UVa Online Judge

Sample Input

9 5
12 2
0 0

Sample Output

Don't make fun of me!
Let me try!

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

Solution originally posted at: Github by @codingsince1985