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

Problem Description

Your non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coor- dinates a very successful foreign student exchange program. Over the last few years, demand has sky-rocketed and now you need assistance with your task.

The program your organization runs works as follo

...

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

Sample Input

10
1 2
2 1
3 4
4 3
100 200
200 100
57 2
2 57
1 2
2 1
10
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
19 20
0

Sample Output

YES
NO

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

Solution originally posted at: Github by @codingsince1985