Minimum Sum
120J1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
5-7 -39 0-8 67 -84 -5
Output
3 2 4 2
Sample 2of 2
Input
53 2-4 7-6 0-8 45 1
Output
3 4 5 4
58%
120J.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
5-7 -39 0-8 67 -84 -5
3 2 4 2
53 2-4 7-6 0-8 45 1
3 4 5 4