A triple of numbers is said to be poor when two of those numbers are equal but the other number is different from those two numbers.
#include <stdio.h>
int main()
{int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((a==c)*(c!=b)+(a==b)*(a!=c)+(b==c)&&(a!=b)==1) printf("Yes");
else printf("No");
}
Comments
Post a Comment