[UVA] 10301 - Rings and Glue
Problem B
Rings and Glue
Input: standard input
Output: standard output
Time Limit: 1 second
Memory Limit: 32 MB
Little
John is in big trouble. Playing with his different-sized (and colored!) rings and
glue seemed such a good idea. However, t...