cf/mirror

The Great Equalizer

CF
1862G2000· candidate master4s256 MB⌨ stdin/stdout

Examples

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