已知两种写法:
int gcd(int x,int y){ return x%y?gcd(y,x%y):y; }
int gcd(int x,int y){ while(x){ y%=x;swap(x,y); } return y; }
从综合方面考虑,大家觉得哪种写法更好呢,帮帮蒟蒻 qwq