| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138868 | 刘杨国卿 | 15求两个数的最大公约数 | C++ | Wrong Answer | 0 MS | 272 KB | 147 | 2025-11-30 11:46:56 |
#include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; while(a%15==0 and b%15==0){ a-=b; } cout<<a; return 0; }
------Input------
49 47
------Answer-----
1
------Your output-----
49