Run ID:93944

提交时间:2024-10-19 16:11:45

#include<bits/stdc++.h> using namespace std; int main() { int a,b,temp; cin>>a>>b; while(b!=0){ temp=a%b; a=b; b=temp; } cout<<a<<endl; return 0; }