1 #include <stdio.h> 2 3 int main(void) 4 { 5 int a, b, c; 6 char other; 7 8 scanf("%d %d %d", &a, &b, &c); 9 10 if (a == b) 11 { 12 other = 'C'; 13 } 14 15 if (a == c) 16 { 17 other = 'B'; 18 } 19 20 if (b == c) 21 { 22 other = 'A'; 23 } 24 25 putchar(other); 26 27 return 0; 28 }
来源:https://www.cnblogs.com/2018jason/p/12027855.html