用户输出
1 35
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#64066 | #106. zxh的同值猜想 | Accepted | 100 | 40 ms | 348 K | C++ 11 (NOI) / 235 B | Lrefrain | 2022-01-25 12:21:25 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a, b;
ll gcd(ll a, ll b) { return !b ? a : gcd(b, a % b); }
int main() {
scanf("%lld%lld", &a, &b);
printf("%lld %lld\n", gcd(a, b), a / gcd(a, b) * b);
return 0;
}
用户输出
7 14057750781710727
系统信息
Exited with return code 0
用户输出
2 28974979732195296
系统信息
Exited with return code 0
用户输出
3 19260972967518327
系统信息
Exited with return code 0