Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97037 | 黎瑾萱 | 公约数问题 | C++ | Accepted | 1 MS | 276 KB | 211 | 2024-11-10 11:46:21 |
#include<bits/stdc++.h> using namespace std; int zdgys(int a,int b){ while(b){ int t = a%b; a = b; b = t; } return a; } int main(){ int n,m; cin>>n>>m; cout<<zdgys(n,m); return 0; }