Promi_38

cf 9A

Jan 16th, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include<bits\stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a[2];
  8.     for(int i = 0; i < 2; i++) scanf("%d", &a[i]);
  9.    
  10.     sort(a, a + 2);
  11.    
  12.     if(7 - a[1] == 1) printf("1/6\n");
  13.     else if(7 - a[1] == 2) printf("1/3\n");
  14.     else if(7 - a[1] == 3) printf("1/2\n");
  15.     else if(7 - a[1] == 4) printf("2/3\n");
  16.     else if(7 - a[1] == 5) printf("5/6\n");
  17.     else if(7 - a[1] == 6) printf("1/1\n");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment