![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学
文章平均质量分 66
鸦_
这个作者很懒,什么都没留下…
展开
-
概率 期望
HDU 3910翻译 2014-07-23 17:07:16 · 381 阅读 · 0 评论 -
矩阵乘法
struct Matrix{ int n , m ; int val[10][10] ; Matrix operator *( const Matrix &b ) const{ Matrix temp ; temp.n = n , temp.m = b.m ; for( int i = 0 ; i翻译 2014-07-10 10:24:42 · 354 阅读 · 0 评论 -
bign类C++高精度模板
#include #include #include #include #include #include using namespace std; const int MAXN = 410; struct bign { int len, s[MAXN]; bign () { memset(s, 0, sizeof(s)); len = 1;转载 2014-08-10 16:34:42 · 377 阅读 · 0 评论 -
莫比乌斯反演
莫比乌斯反演在数论中占有重要的地位,许多情况下能大大简化运算。那么我们先来认识莫比乌斯反演公式。 定理:和是定义在非负整数集合上的两个函数,并且满足条件,那么我们得到结论 在上面的公式中有一个函数,它的定义如下: (1)若,那么 (2)若,均为互异素数,那么 (3)其它情况下转载 2014-08-15 13:57:12 · 307 阅读 · 0 评论