标签:inline 打开 扩展 新解 应该 exgcd 扩展欧几里得算法 mat 算法详解
int exgcd(int a,int b,int &x1,int &y1)
{
    if(!b)
    {
        x1=1,y1=0;
        return a;
    }
    int x2,y2;
    int d=exgcd(b,a%b,x2,y2);
    x1=y2,y1=x2-(a/b)*y2;
    return d;
}标签:inline 打开 扩展 新解 应该 exgcd 扩展欧几里得算法 mat 算法详解
原文地址:https://www.cnblogs.com/KatouKatou/p/9818175.html