-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdie.cpp
More file actions
29 lines (29 loc) · 700 Bytes
/
die.cpp
File metadata and controls
29 lines (29 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <bits/stdc++.h>
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
#define endl "\n"
#define ll long long int
#define pb push_back
#define ma make_pair
#define f1(i, a, b) for (int i = a; i < b; i++)
#define f2(i, a, b) for (int i = a; i > b; i--)
#define ff first
#define ss second
#define lb lower_bound
#define ub upper_bound
#define mod 1000000007
#define ii pair<int,int>
#define vi vector<int>
#define vl vector<ll>
#define vii vector<ii>
#define pq priority_queue<int,vi,greater<int> > //for min heap.
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
int c=6-max(a,b)+1;
cout<<c/(__gcd(c,6))<<"/"<<6/(__gcd(c,6));
}