Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
205 | ZRH | 公约数问题 | C++ | Accepted | 0 MS | 260 KB | 413 | 2022-07-22 09:42:45 |
#include<iostream> //输入函数库 #include<iomanip> #include<cmath> //数学函数库 #include<cstdio> #include<ctime> #include<cstring> #include<cstdlib> #include<string> #include<stdlib.h> #include<sys/time.h> using namespace std; int t(int x,int y){ if(y==0){ return x; } else{ return t(y,x%y); } } int main(){ int x,y; cin>>x>>y; cout<<t(x,y); return 0; }