ÀÂÒ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

635. massivchik

Time Limit: 1 seconds
Memory Limit:1000KB
Points:2
View Problem Statistics Submit Problem added Undefined

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.


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
633. list of multiplication 635. 636. matrix 1070. max min 1043. n-êîðíåé
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.249 sec.
© Copyright VSTU, AVT, Nosov D.A.