1922: 蓝桥杯算法提高VIP-周期字串(Python3) 摘要:解题思路: 本体略微不同于另一个求字符串中的子串最大周期的题: 1.本题中的字符串一定是k个子串拼接成的,不能有无关字符(即不能用字符串中的count方法); 2.本…… 题解列表 2021年03月07日 0 点赞 1 评论 538 浏览 评分:9.9
蓝桥杯算法提高VIP-周期字串-题解(C++代码) 摘要:``` #include using namespace std; int main() { string s; cin>>s; for(int j=1;j…… 题解列表 2020年07月16日 0 点赞 0 评论 921 浏览 评分:0.0
蓝桥杯算法提高VIP-周期字串-题解(C++代码) 摘要:### 没有注意一个循环的情况,WA了三次... ```cpp #include using namespace std; // 与“现代诗如蚯蚓”那一题的思路几乎一样,按步长截取,然后…… 题解列表 2020年03月16日 0 点赞 0 评论 1183 浏览 评分:9.9
蓝桥杯算法提高VIP-周期字串-题解(Java代码) ```javaimportjava.util.Scanner;publicclassMain{publicstaticvoidgetResult(Strings){intres=s.length();char[]arr=s.toCharArray();for(inti=1;is.length()/2) 题解列表 2020年02月26日 0 点赞 0 评论 1072 浏览 评分:0.0
蓝桥杯算法提高VIP-周期字串-题解(C++代码) 摘要:```c #include using namespace std; string s; string a; string b; int main(void) { cin>>…… 题解列表 2020年02月25日 0 点赞 0 评论 1110 浏览 评分:0.0
蓝桥杯算法提高VIP-周期字串 (C++代码) #include#include#include#includeusingnamespacestd;constintmaxn=100;//设置符号常量,用来定义字符串的最大长度intmain(void){intnum(chars[maxn]);//声明函数chars[maxn];scanf("%s", 题解列表 2019年06月30日 1 点赞 0 评论 1797 浏览 评分:0.0
蓝桥杯算法提高VIP-周期字串 (C++代码) 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include <…… 题解列表 2018年11月02日 1 点赞 0 评论 1633 浏览 评分:0.0