SP11117 RESTACK - Restacking haybales 2012

Description

Farmer John has just ordered a large number of bales of hay. He would like to organize these into N piles (1

Input Format

\* Line 1: The single integer N. \* Lines 2..1+N: Line i+1 contains the two integers A\_i and B\_i (1

Output Format

N/A