| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148364 | 罗迎甲 | 公约数问题 | C++ | Wrong Answer | 1 MS | 272 KB | 239 | 2026-02-11 14:30:55 |
#include<iostream> using namespace std; int main(){ int a=0,c=0,max=0; cin>>a>>c; for(int b=1;b<=a;b++){ if(c%b==0&&a%b==0&a&max<=b){ max=b; } } cout<<max<<endl; return 0; }
------Input------
4140 3864
------Answer-----
276
------Your output-----
0