cf/mirror

Sum of Medians

CF
1440B900· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
2 4
0 24 34 58 62 64 69 78
2 2
27 61 81 91
4 3
2 4 16 18 21 27 36 53 82 91 92 95
3 4
3 11 12 22 33 35 38 67 69 71 94 99
2 1
11 41
3 3
1 1 1 1 1 1 1 1 1
Output
165
108
145
234
11
3
1440B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)