- Time limit: 1.00 s
- Memory limit: 512 MB
The first input line has an integer $n$: the number of movies.
After this, there are $n$ lines that describe the movies. Each line has two integers $a$ and $b$: the starting and ending times of a movie.
Print one integer: the maximum number of movies.
- $1 \le n \le 2 \cdot 10^5$
- $1 \le a < b \le 10^9$