Files
OI-source/1.1888.cpp
2023-08-03 09:22:52 +08:00

19 lines
304 B
C++

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
#ifdef local
freopen("pro.in","r",stdin);
#endif
int a,b,c; cin>>a>>b>>c;
int x=max(max(a,b),c);
if(a==x) swap(a,c);
if(b==x) swap(b,c);
if(a>b) swap(a,b);
int d=__gcd(a,c);
a/=d; c/=d;
cout<<a<<'/'<<c<<endl;
return 0;
}