cf/mirror

Intersection and Union

CF
1743F2300· international master5s512 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4
3 5
4 8
2 2
1 9
Output
162
Sample 2of 2
Input
4
1 9
3 5
4 8
2 2
Output
102
1743F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)