上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页
摘要: #include<bits/stdc++.h>using namespace std;const int N=1000007;char s1[N],s2[N];int len1,len2;int nex[N];int cnt1[7],cnt2[7];int main(){ scanf("%s %s" 阅读全文
posted @ 2019-03-11 00:23 sewage 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int main(){ long long a,b; cin>>a>>b; a--; long long tmp=a; if(tmp&1) tmp=0; long long tot=a; if(tot%4==1|| 阅读全文
posted @ 2019-03-10 23:35 sewage 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h>using namespace std;const long long mod = 1e9+7;unordered_map<long long,long long>mp;long long n,m;long long dp(long long n){ 阅读全文
posted @ 2019-03-08 16:12 sewage 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h>using namespace std;int main(){ string t; cin>>t; int n=t.size(); string s1(n,'a'),s2(n,'a'),s3(n,'a'); for(int i=0;i<n;i++){ 阅读全文
posted @ 2019-03-06 23:31 sewage 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>typedef long long ll;const int inf=0x3f3f3f3f;using namespace std;char b[507];int dp[507][507];int main(){ memset(dp,0x3f,sizeo 阅读全文
posted @ 2019-03-06 23:12 sewage 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;typedef long long ll;int n,k;ll a[200007],b[200007],s[200007];ll ans;int check(ll val){ memset(s,0,sizeof(s 阅读全文
posted @ 2019-03-06 22:12 sewage 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;char s[200007];int ans[200007];int main(){ int n,k; int i=0,j=0,l=0; scanf("%d%d",&n,&k); scanf("%s",s+1); 阅读全文
posted @ 2019-03-02 02:03 sewage 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int n;int nxt[3][100007];char buff[100007];const char *seq="msc",*pat[8]={"022012","020212","002212","01202 阅读全文
posted @ 2019-03-01 17:22 sewage 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;int n,m;long long a=0,b=0,ans=0;char s[407][407];int vis[407][407];const int dir[4][2]={{1,0},{0,1},{-1,0}, 阅读全文
posted @ 2019-03-01 16:15 sewage 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h>using namespace std;vector<int>g[2007];int fa[2007],vis[2007],num[2007];char s[2007][2007];int find_(int x){ if(fa[x]==x) retur 阅读全文
posted @ 2019-02-28 20:13 sewage 阅读(154) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 33 下一页