int Count = (x==y) + (y==z) + (x==z);
switch(Count){
case 3: puts("3つとも同じ。");break;
case 1: puts("一組同じ。");break;
case 0: puts("全てことなる。");break;
}