| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69474 | 何冠宇 | 15求两个数的最大公约数 | C++ | Wrong Answer | 1 MS | 272 KB | 210 | 2024-04-05 11:17:40 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,gy; cin>>a>>b; int j=1; while(j<=a&&j<=b){ if(j%a==0&&b%j==0){ gy=j; } j++; } cout<<gy; return 0; }
------Input------
49 47
------Answer-----
1
------Your output-----
4195064