Run ID:96704
提交时间:2024-11-09 11:58:30
#include<iostream> using namespace std; int main(){ int a,b,ys; cin>>a>>b; ys = a%b; while(ys!=0){ a = b; b = ys; ys = a%b; } cout<<b; return 0; }