摘要:
#include using namespace std; typedef long long ll; ll a[500],r[500],k; ll gcd(ll a,ll b){ while(b!=0){ ll t=a; a=b; b=t%b; } return a; } ll lcm(ll a,ll b){ ... 阅读全文
posted @ 2018-03-04 16:59
xianbeigg
阅读(121)
评论(0)
推荐(0)
摘要:
#include using namespace std; int exgcd(int a, int b, int &x, int &y) { if (b == 0) { x = 1; y = 0; } else{ exgcd(b, a%b, y, x); y-=x*(a/b); } } int main() { ... 阅读全文
posted @ 2018-03-04 16:58
xianbeigg
阅读(100)
评论(0)
推荐(0)

浙公网安备 33010602011771号