不想写标题
查看原帖
不想写标题
677581
_Glassy_Sky_楼主2023/8/8 22:17
#include<bits/stdc++.h>
using namespace std;
int main()
{
	//freopen(".in", "r", stdin);
	//freopen(".out", "w", stdout);
	ios::sync_with_stdio(0);
	cin.tie(0), cout.tie(0);
	int a, b, c, d;
	char e, f;
	cin >> a >> e >> b >> c >> f >> d;
	int g = a * c;
	int h = b * d;
	int i = __gcd(g, h);
	cout << h / i << " " << g / i;
	return 0;
}

请问最后那行输出是怎样确定顺序的(已A)

2023/8/8 22:17
加载中...