Wednesday, June 15, 2016

SOLUTION OF URI 1072


//  1072  (Mahmud_Jamil) BRUR
//  Interval 2



#include<stdio.h>
int main()
{
    long long int i,n,input,in=0,out=0;
    scanf("%lld",&n);
    for(i=1;i<=n;i++){
        scanf("%lld",&input);
        if(input>=10 && input<=20)
            in++;
        else
            out++;
    }
    printf("%lld in\n%lld out\n",in,out);
    return 0;
}



0 comments:

Post a Comment