Same Sum Blocks (Hard)
1141F21900· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
74 1 2 2 1 5 3
Output
37 72 34 5
Sample 2of 3
Input
11-5 -4 -3 -2 -1 0 1 2 3 4 5
Output
23 41 1
Sample 3of 3
Input
41 1 1 1
Output
44 41 12 23 3
58%
1141F2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)