Run ID:5519

提交时间:2024-11-23 20:37:21

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