LearnPy Hub
← Arena
AdvancedRating 1500

Meeting Rooms

Given meeting times [start, end), print the minimum number of rooms needed.

Input

n, then n lines 'start end'.

Output

A number.

Sample 1

Input
3
0 30
5 10
15 20
Output
2

Sample 2

Input
2
7 10
2 4
Output
1
solution.py
Output appears here
Meeting Rooms · Python Arena problem · LearnPy Hub