cf/mirror

Complex Segments (Hard Version)

CF
2018E23400· legendary gm13s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
3
1 2 3
5 4 6
5
1 2 3 6 8
5 4 7 9 10
5
3 1 4 1 5
7 2 6 5 10
Output
3
4
4
2018E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…