cf/mirror

Maximum Crossings (Hard Version)

CF
1676H21500· specialist1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
7
4 1 4 6 7 7 5
2
2 1
1
1
3
2 2 2
Output
6
1
0
3
1676H2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)