用户输出
1 35
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#88984 | #106. zxh的同值猜想 | Accepted | 100 | 73 ms | 384 K | C++ / 247 B | hhhqwe | 2023-05-18 11:10:46 |
#include <iostream>
using namespace std;
int qsq(int a, int b) {
int c = 1;
while (c != 0) {
c = a % b;
a = b;
b = c;
}
return a;
}
int main() {
long long a, b;
cin >> a >> b;
cout << qsq(a, b) << " " << a * b / qsq(a, b);
}
用户输出
7 14057750781710727
系统信息
Exited with return code 0
用户输出
2 28974979732195296
系统信息
Exited with return code 0
用户输出
3 19260972967518327
系统信息
Exited with return code 0