GoLang Solution For UVa Online Judge: 10812 - Beat the Spread!
GO Solution For UVa 10812 - Beat the Spread!. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
Problem Description
Superbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local hackers have organized a betting pool on the game. Members place their bets on the sum of the two final scores, or on the absolute difference between the two scores.
...You can find the full details of the problem Beat the Spread! at UVa Online Judge
Sample Input
8 40 20 20 40 1 5 100 6 12 61 51 61 123 512 63 1
Sample Output
30 10 impossible impossible 53 47 impossible impossible impossible 32 31
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.