10611 - Rings n Ropes   

Description

http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=1926

Input

Output

Sample Input  Download

Sample Output  Download

Tags




Discuss