用户输出
1 35
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#100727 | #106. zxh的同值猜想 | Wrong Answer | 60 | 81 ms | 396 K | C / 308 B | jlqian | 2023-09-05 15:04:09 |
#include <stdio.h>
int gcd(int a, int b) {
if (b == 0) {
return a;
}
return gcd(b, a % b);
}
int lcm(int a, int b) { return (a * b) / gcd(a, b); }
int main() {
//两个数求最大公约数和最小公倍数
int a, b;
scanf("%d%d", &a, &b);
printf("%d %d", gcd(a, b), lcm(a, b));
}
用户输出
2 438885448
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
2 354861892
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
2 390550956
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
2 190671014
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
7 85788770
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
2 776980448
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0
用户输出
3 286733772
Special Judge 信息
Files user_out and answer differ
系统信息
Exited with return code 0