对于如下代码,求证,有blog也可以
void exgcd(int a,int b,int &x,int &y){ if(!b)x=1,y=0; else exgcd(b,a%b,y,x),y-=x*(a/b); }