| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122138 | 田子熙 | 15求两个数的最大公约数 | C++ | Wrong Answer | 0 MS | 264 KB | 223 | 2025-06-14 12:27:32 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,s,m,s2; s=n; while(s>=1){ if(n%s==0){ if(m%s==0){ cout<<s; return 0; } } s--; } cout<<endl; return 0; }
------Input------
49 47
------Answer-----
1
------Your output-----