In the massive
X from M elements (M is not much than thirty) find the meaning of the maximal
element the quantity of the maximal elements and numbers of all positions,
which it stands (numeration of elements from 1). Number M and meaning of the
massive is elements are set by the introduction thought the (“ENTER”). During
introduction M equal zero or negative to remove 0
input data
the quantity
of the elements In the massive, the elements In the massive
output data
meaning
maximalresult of the element, the quantity of the maximal elements (in the separate line
through ENTER) numbers of all positions (in the one line through the gap)
example input data
5
1
2
5
5
4
example output data
5
2
3 4
author: Zibjuk T.V.