Codeforces 787a
题目传送
拓展欧几里德:ax+b=cy+d; -> ax+cy=d-b;
代码:
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll exgcd(ll a,ll b,ll &x,ll &y){
if(b==0){
x=1;
y=0;...
原创
2018-10-17 19:13:27 ·
151 阅读 ·
0 评论