cf/mirror

Min-Sum-Max

CF
1868E3500· legendary gm5s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
3
-1 5 4
2
2023 2043
6
1 4 7 -1 5 -4
5
-4 0 3 -18 10
1
998244853
10
-4 2 5 -10 4 8 2 9 -15 7
7
-7 3 8 -9 -2 2 4
4
-5 5 -2 -5
Output
2
1
3
2
1
6
5
3
1868E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)