数论
文章平均质量分 63
___Evan
这个作者很懒,什么都没留下…
展开
-
FAFU-1033 加括号 卡特兰数
题目链接#include#include#include#include#include#include#include#includeusing namespace std;const int maxn = 105;int ct[maxn][maxn],len[maxn];void catalan(){ ct[1][0] = len[1] = 1; for原创 2014-02-21 19:40:52 · 425 阅读 · 0 评论 -
HDU-2157 How many ways?? 矩阵快速幂
题目链接#include#include#include#include#include#include#include#includeusing namespace std;const int maxn = 105;const int inf = 1<<30;const int mod = 1000;int n,m,q;struct Matrix{ in原创 2014-03-01 14:49:38 · 354 阅读 · 0 评论 -
ACdream 1020 The Game about KILL
#include #include #include #include #include using namespace std;typedef long long LL;const int maxn = 10005;const int Mod = 1000000007;int n,m,A;int main(){ #ifndef ONLINE_JUDGE freo原创 2014-07-13 15:23:27 · 347 阅读 · 0 评论