GoLang Solution For UVa Online Judge: 10530 - Guessing Game
GO Solution For UVa 10530 - Guessing Game. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
Stan and Ollie are playing a guessing game. Stan thinks of a number between 1 and 10 and Ollie guesses what the number might be. After each guess, Stan indicates whether Ollie’s guess is too high, too low, or right on.
After playing several rounds, Ollie has become suspicious that Stan cheats; that...
You can find the full details of the problem Guessing Game at UVa Online Judge
10 too high 3 too low 4 too high 2 right on 5 too low 7 too high 6 right on 0
Stan is dishonest Stan may be honest
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985