| 比赛 | 202110省实验桐柏一中普及组联赛 | 评测结果 | AAAAAAAAAW |
|---|---|---|---|
| 题目名称 | 分数约分 | 最终得分 | 90 |
| 用户昵称 | 蒟蒻 | 运行时间 | 0.000 s |
| 代码语言 | C++ | 内存使用 | 0.00 MiB |
| 提交时间 | 2021-10-18 18:44:37 | ||
#include<iostream>
#include<cstdio>
using namespace std;
typedef unsigned long long ull;
ull gcd(ull a,ull b){
if(a==0){return b;}
return gcd(b%a,a);
}
int main(){
freopen("yuefen.in","r",stdin);
freopen("yuefen.out","w",stdout);
ull x,y;
cin>>x>>y;
cout<<(x/gcd(x,y))<<" "<<(y/gcd(x,y));
return 0;
}