Advertisement
noor017

URI 1467 - Zero or One

Jul 6th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int A, B, C;
  6.     while (scanf("%d %d %d", &A, &B, &C))
  7.     {
  8.         if(A == B && B == C)
  9.         {
  10.             printf("*\n");
  11.         }
  12.  
  13.         else if(B == C)
  14.         {
  15.             printf("A\n");
  16.         }
  17.  
  18.         else if(A == C)
  19.         {
  20.             printf("B\n");
  21.         }
  22.  
  23.         else
  24.         {
  25.             printf("C\n");
  26.         }
  27.     }
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement