Solution for UVa 162 – Beggar My Neighbour

Solution for problem UVa 162 – Beggar My Neighbour from UVa Online Judge website.

Sometimes I stuck solving some problems from there (usually because my code either add unneeded new line or doesn’t add needed new line and I am finding what is wrong by trial and error), so here is working solution for UVa 162 – Beggar My Neighbour that can save you time if you encounter some strange Wrong Answer or NZEC errors. Continue reading