fork(1) download
  1. // iostream is too mainstream
  2. #include <cstdio>
  3. // bitch please
  4. #include <iostream>
  5. #include <vector>
  6. #include <set>
  7. #include <map>
  8. #include <string>
  9. #include <queue>
  10. #include <stack>
  11. #include <algorithm>
  12. #include <iomanip>
  13. #define dibs reserve
  14. #define OVER9000 1234567890
  15. #define patkan 9
  16. #define tisic 47
  17. #define soclose 10e-7
  18. #define ALL_THE(CAKE,LIE) for(auto LIE =CAKE.begin(); LIE != CAKE.end(); LIE++)
  19. #define chocolate win
  20. #define ff first
  21. #define ss second
  22. #define abs(x) ((x < 0)?-(x):(x))
  23. // mylittlepony
  24. using namespace std;
  25.  
  26. int main() {
  27. // freopen("ghanophobia.in","r",stdin);
  28. int T;
  29. scanf(" %d",&T);
  30. for(int t =0; t < T; t++) {
  31. int a,b;
  32. scanf(" %d:%d",&a,&b);
  33. cout << "Case " << t+1 << ": ";
  34. if(a+1 > b+6) {cout << "YES\n"; continue;}
  35. if(a+1 < b+6) {cout << "NO\n"; continue;}
  36. if(a+2 > 2*b+6) cout << "YES\n";
  37. if(a+2 < 2*b+6) cout << "NO\n";
  38. if(a+2 == 2*b+6) cout << "PENALTIES\n";}
  39. return 0;}
  40.  
  41. // look at my code
  42. // my code is amazing
Success #stdin #stdout 0s 3300KB
stdin
3
6:0
1:1
6:1
stdout
Case 1: YES
Case 2: NO
Case 3: PENALTIES