Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits\stdc++.h>
- using namespace std;
- int main()
- {
- int a[2];
- for(int i = 0; i < 2; i++) scanf("%d", &a[i]);
- sort(a, a + 2);
- if(7 - a[1] == 1) printf("1/6\n");
- else if(7 - a[1] == 2) printf("1/3\n");
- else if(7 - a[1] == 3) printf("1/2\n");
- else if(7 - a[1] == 4) printf("2/3\n");
- else if(7 - a[1] == 5) printf("5/6\n");
- else if(7 - a[1] == 6) printf("1/1\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment