随笔分类 -  乘法逆元

摘要:题解:发现问题的本质,即堆的个数 动态规划一下 f[i]表示前i个元素形成的堆的个数 第i个元素为根,左右子树又是两个堆 注意:逆元存在条件 阅读全文
posted @ 2018-02-20 18:12 ws_zzy 阅读(155) 评论(0) 推荐(0)
摘要:#include<iostream> #include<cstdio> #include<cstring> #define LL long long #define maxn 1000009 #define N maxn+10 #define M 1000000007 using namespace 阅读全文
posted @ 2017-08-11 19:08 ws_zzy 阅读(321) 评论(2) 推荐(1)