fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int p, r;
  5.  
  6. scanf("%i %i", &p, &r);
  7.  
  8. if(p == 0) {
  9. printf("C");
  10. } else if (p == 1 && r == 0) {
  11. printf("B");
  12. } else if (p == 1 && r == 1) {
  13. printf("A");
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 10320KB
stdin
0 0
stdout
C