cf/mirror

Segment Intersections

CF
1389D2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
3 5
1 2
3 4
2 1000000000
1 1
999999999 999999999
10 3
5 10
7 8
Output
7
2000000000
0
1389D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)