Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1244 | 李羽 | 15求两个数的最大公约数 | C++ | Wrong Answer | 0 MS | 260 KB | 160 | 2023-08-23 10:27:25 |
#include<iostream> using namespace std; int main(){ int a,b,max; cin>>a>>b; while(max!=0){ max=a%b; a=b; b=max; } cout<<a; return 0; }
------Input------
25 70
------Answer-----
5
------Your output-----
25