80求调
查看原帖
80求调
1238315
aibianchendeyangyang楼主2025/8/30 18:40
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,e,f;
int main(){
	cin>>a>>b>>c;
    d=min(a,min(b,c));
    e=max(a,max(b,c));
    if(d%e==0){
        f=d/e;
        d=d/f;
        e=e/f;
    }
    cout<<d<<"/"<<e;
	return 0;
}

不忘初心的我,挖些人才。

2025/8/30 18:40
加载中...