To arrange the
elements of massif in the ascending order.
Is assigned the massif, which
contains 9 elements. Positive elements of
massif to regulate in the ascending order. Remaining elements remain at
the places.
Entrance data
elements of
massif
Target data
the massif, recorded
in to saddle fungus.
Obtained massif after the
arrangement of elements.
Entrance data
5
4
-9
7
1
-8
-2
4
2
Target data
54-971-8-242
12-944-8-257
The author: Devyatkova Elya