Grocer's Problem
91D2600· international gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
63 5 6 1 2 4
Output
241 3 6 43 6 4 122 55 2
Sample 2of 2
Input
149 13 11 3 10 7 12 14 1 5 4 6 8 2
Output
342 13 8 1413 8 14 256 7 12 5 107 12 6 10 553 11 4 1 911 4 3 9 1
58%
91D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…