cf/mirror

Maximal Intersection

CF
1029C1600· expert3s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
4
1 3
2 6
0 4
3 3
Output
1
Sample 2of 4
Input
5
2 6
1 3
0 4
1 20
0 4
Output
2
Sample 3of 4
Input
3
4 5
1 2
9 20
Output
0
Sample 4of 4
Input
2
3 10
1 5
Output
7
1029C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)