CodeForces - 1169D Good Triple

给定一个01串,判断这个串中有几个区间能够知足 s[i]=s[i+k]=s[i+2k]c++ AC代码: #include <bits/stdc++.h> using namespace std; int main() { string str; cin>>str; long long int pairs = 0; if(str.length()<2) {
相关文章
相关标签/搜索