Big Brush
1638D2000· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 45 5 3 31 1 5 32 2 5 42 2 4 4
Output
61 3 33 3 42 2 51 1 52 1 13 1 2
Sample 2of 2
Input
3 41 1 1 12 2 3 12 2 1 1
Output
-1
58%
1638D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)