Subscribe Us

Responsive Advertisement

Advertisement

URI Online Judge | 2963 Buffoon solution in c

 

uri 2963 solution in c

by ujjal roy


#include<stdio.h>


main()

{

    int n,i,max,c=0;

    scanf("%d",&n);

    int a[n];

    for(i=0;i<n;i++)

   scanf("%d",&a[i]);

    max=a[0];

    for(i=1;i<n;i++)

    {

       if(max<a[i])

       {

           c=1;

           break;

       }

    }

    if(c==0) printf("S\n");

    else printf("N\n");

    return 0;

}


Post a Comment

0 Comments