man 刘文捷(真的) · 发布于 2024-08-01 · 浏览 587 回复 0 include <bits/stdc++.h> using namespace std; int main() { int m,n,t; cin>>m>>n; while(n!=0){ t=m%n; m=n; n=t; } cout<<m; return 0; }