会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蒟蒻也有大梦想
博客园
首页
新随笔
联系
管理
订阅
2020年3月5日
快速幂模板
摘要: #include <bits/stdc++.h> using namespace std; typedef long long LL; inline LL quickpow (LL x , LL y , LL mod){ LL ans = 1;//自定义函数可作为快速幂模型 for ( ; y ;
阅读全文
posted @ 2020-03-05 16:04 蒟蒻也有大梦想
阅读(87)
评论(0)
推荐(0)
2020年3月4日
codeforce round 612
摘要: A题题意: 就是给你一个只包含A和P字母的串,问你A后面最多有几个p。 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define long long ll; 4 char a[200]; 5 int main() 6 { 7 int n,m
阅读全文
posted @ 2020-03-04 21:01 蒟蒻也有大梦想
阅读(93)
评论(0)
推荐(0)
2020年2月6日
序列自动机(处理子串匹配问题)
摘要: 模板格式如下。for(int i=n; i>0; i--) { for(int j=1; j<=26; j++) nex[i-1][j-'a'] = nex[i][j-'a']; //26是假定字符集为小写字母 nex[i-1][s[i]-'a'] = i; }
阅读全文
posted @ 2020-02-06 13:34 蒟蒻也有大梦想
阅读(94)
评论(0)
推荐(0)
公告