exgcd板子 2026/8/15 7:23:23 拓冰建站 浏览量 void exgcd(int &x,int &y,int a,int b) {if(!b){x=1;y=0;return;}exgcd(x,y,b,a%b);int t=x;x=y;y=t-a/b*y; }