Problem2515--Union of Interval

2515: Union of Interval

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Input



Sample Input Copy

3
10 20
20 30
40 50

Sample Output Copy

10 30
40 50

Source/Category