三個球A、B、C,大小形狀相同且其中有一個球與其他球重量不同。要求找出這個不一樣的球。
輸入格式:
輸入在一行中給出3個正整數,順序對應球A、B、C的重量。
輸出格式:
在一行中輸出唯一的那個不一樣的球。
輸入樣例:1 1 2輸出樣例:
C
#include<stdio.h>
int main(){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a==b){
printf("C");
}
else if(a==c){
printf("B");
}
else{
printf("A");
}
return 0;
}