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

Problem Description

Gustavo knows how to count, but he is now learning how write numbers. As he is a very good student, he already learned 1, 2, 3 and 4. But he didn’t realize yet that 4 is different than 1, so he thinks that 4 is another way to write 1. Besides that, he is having fun with a little game he created hims


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

Sample Input


Sample Output


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

Solution originally posted at: Github by @codingsince1985