Sunday, April 24, 2016

UVA 12854: Automated Checking Machine -Solution

Unknown
#include<stdio.h>
int main()
{
    int a1,a2,a3,a4,a5,b1,b2,b3,b4,b5;
    while(scanf("%d %d %d %d %d",&a1,&a2,&a3,&a4,&a5)==5)
    {
        scanf("%d %d %d %d %d",&b1,&b2,&b3,&b4,&b5);
        if(a1!=b1 && a2!=b2 &&a3!=b3 &&a4!=b4 &&a5!=b5)
            printf("Y\n");
        else printf("N\n");
    }
    return 0;
}

Unknown

Studying at Shahjalal University of Science and Technology, Sylhet.

0 comments:

Post a Comment

Coprights @ 2016,