Permutation by Sum
1512E1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
55 2 3 55 3 4 13 1 2 42 2 2 22 1 1 3
Output
1 2 3 4 5-11 3 21 2-1
58%
1512E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
55 2 3 55 3 4 13 1 2 42 2 2 22 1 1 3
1 2 3 4 5-11 3 21 2-1