cf/mirror

Median Splits

CF
2103C1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
3 2
3 2 1
3 1
3 2 1
6 3
8 5 3 1 6 4
8 7
10 7 12 16 3 15 6 11
6 8
7 11 12 4 9 17
3 500000000
1000 1000000000 1000
Output
YES
NO
NO
YES
YES
YES
2103C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)