Run ID:150154

提交时间:2026-03-22 14:52:56

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