Sunday, June 19, 2016

SOLUTION OF URI 1080


//  1080   (Mahmud_Jamil) BRUR
//  Highest and Position


#include<stdio.h>
int main()
{
    int i,in,m=0,p;
    for(i=1;i<=100;i++){
        scanf("%d",&in);
        if(m<in){
            m=in;
            p=i;
        }
    }
    printf("%d\n%d\n",m,p);
    return 0;
}








0 comments:

Post a Comment