VIJOS 1164 中国剩余定理 CRT
#include"stdio.h" //精度需要注意
#include"iostream"
using namespace std;
typedef long long ll;
int n,m[50],a[50];
void E_gcd(ll a,ll b,ll &d,ll &x,ll &y)
{
if(!b) {d=a;x=1;y=0;}
else{E_gcd(b,a%b,d,
原创
2016-08-23 02:08:29 ·
293 阅读 ·
0 评论