Run ID:96685

提交时间:2024-11-09 11:52:03

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