Friday, June 1, 2018

UVA - 12854 .cpp file

#include<stdio.h>
int main()
{
    register unsigned int a,b,c,d,e,f,g,h,i,j;
    while (scanf("%u%u%u%u%u%u%u%u%u%u", &a, &b, &c, &d, &e, &f, &g, &h, &i, &j) == 10)
    {
        (a ^ f && b ^ g && c ^ h && d ^ i && e ^ j) ? printf("Y\n"): printf("N\n");
    }
    return 0;
}

No comments:

Post a Comment