Design Tutorial: Change the Goal
472F2700· international gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
23 56 0
Output
21 22 2
Sample 2of 4
Input
50 0 0 0 01 2 3 4 5
Output
-1
Sample 3of 4
Input
34 5 61 2 3
Output
53 11 22 22 33 1
Sample 4of 4
Input
31 2 34 5 6
Output
-1
58%
472F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)