用户输出
1 35
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#89124 | #106. zxh的同值猜想 | Accepted | 100 | 72 ms | 384 K | C++ 17 / 301 B | Dytchem | 2023-06-06 23:08:32 |
#include <iostream>
#include <string>
#include <iomanip>
#include <vector>
#include <cmath>
#include <numeric>
using namespace std;
typedef long long ll;
int main() {
ll a, b;
cin >> a >> b;
ll c = a * b;
while (b != 0) {
a %= b;
swap(a, b);
}
cout << a << ' ' << c / a;
}
用户输出
7 14057750781710727
系统信息
Exited with return code 0
用户输出
2 28974979732195296
系统信息
Exited with return code 0
用户输出
3 19260972967518327
系统信息
Exited with return code 0