Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
96688 刘佳宇 15求两个数的最大公约数 C++ Time Limit Exceeded 1000 MS 272 KB 198 2024-11-09 11:52:53

Tests(0/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b,yushu; cin>>a>>b; yushu=a%b; while(yushu!=0){ a=b; b=yushu; } cout<<b; return 0; }