This is just to report a small bug in the problem statement (http://icpcres.ecs.baylor.edu/onlinejud ... oblem=1190). In the Output section:
That N should be a M, right?statement wrote: In case of a successful arrangement print M additional lines where the i-th (1 <= i <= N) of these lines contains a table number (an integer from 1 to N) for each of the members of team i.
Best Regards.