881

Problem ID: 881

Since this is not stated explicitly in the problem statement, in theory, the polygon identifiers could be arbitrary positive integers not necessarily in the range [1, NC]. Similarly, the point identifiers could be arbitrary positive integers, possibly outside of the interval [1, NP]. However, most likely, UVa Online Judge's test cases are restricted to polygon identifiers 1,...,NC and point identifiers 1,...,NP. The current solution on uDebug takes into consideration this restriction. So please bear this in mind while submitting input on uDebug.