Saturday, June 25, 2016

SOLUTION OF URI 1858


//
  Solution of  1858 Theon's Answer
//   (Mahmud_Jamil) BRUR






#include <stdio.h>
int main()
{
    int a,b,c,d=0,e=1;
    scanf("%d", &a);
    int ara[a];
    for(b=0; b<a; b++)
        scanf("%d", &ara[b]);
    c=ara[d];
    for(d=0; d<a; d++)
    {
        if(ara[d]<c)
        {
            c=ara[d];
            e=d+1;
        }

    }
    printf("%d\n", e);
    return 0;
}