用户输出
1 35
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#103458 | #106. zxh的同值猜想 | Wrong Answer | 60 | 3984 ms | 400 K | C++ 17 / 378 B | 西安交通大学 | 2024-03-18 16:47:16 |
#include <iostream>
#include <math.h>
using namespace std;
int main() {
long int a = 0, b = 0;
long int d = 0, D = 0;
cin >> a >> b;
if (a > b) {
d = b;
b = a;
a = d;
}
int i = 0;
for (i = a; i > 0; i--) {
if (a % i == 0 && b % i == 0)
break;
}
d = i;
D = a * b / d;
cout << d << ' ' << D;
return 0;
}
用户输出
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
用户输出
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