THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Position in the array max

Threads: Enter array of n integers. Search order (location) the largest number in the array.
Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces.
Output: A multi-line number is the order of the largest number in the array, the sequence number in ascending and separated by spaces.
For example:

input:
3
1 3 2
output:
2

You are not logged in? Log in to Submit Now!

7 Comments

Add a Comment