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