随笔分类 -  数学

摘要:输出斐波那契数列前 n 项和 对m取摸的结果 #include<bits/stdc++.h> #define LL long long #define N 3 using namespace std; int n,m; void cal(int c[],int a[],int b[][N]) { i 阅读全文
posted @ 2021-01-31 14:04 君与 阅读(72) 评论(0) 推荐(0)
摘要:#include<bits/stdc++.h> using namespace std; typedef long long LL; LL exgcd(LL a,LL b,LL &x,LL &y) { if(!b) { x=1,y=0; return a; } LL d=exgcd(b,a%b,y, 阅读全文
posted @ 2020-12-29 16:15 君与 阅读(64) 评论(0) 推荐(0)