摘要: #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)
摘要: 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)
摘要: 模板格式如下。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)