Codeforces Round #833 (Div. 2) D. ConstructOR(构造 逆元/exgcd)
题目t(tusingnamespacestd;typedeflonglongll;intt,a,b,c,d,v;intmain(){cin>>t;while(t--){cin>>a>>b>>d;c=0;while(a%2==0&&b%2==0&&d%2==0){a/=2,b/=2,d/=2;c++;}if(d%2==0){coutusingnamespacestd;typedeflonglongl