题解列表
Power Strings超限问题
摘要:解题思路:求解最多循环子串个数可以等效为求解最小循环子串的长度问题,只需要循环遍历子串长度从1到len/2的区间,若有解则输出len/最小子串长度,若无解则最小循环子串长度为len,最多循环子串个数为……
1040: [编程入门]实数的打印
摘要:无脑打印。#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << setiosflags(ios::f……
1048: [编程入门]自定义函数之字符串拷贝
摘要:#include<bits/stdc++.h>
using namespace std;
int main()
{
int length;
cin >> length……
1055: 二级C语言-进制转换
摘要:对所需转换数不断做对 8 取余数压入向量和本身除以 8 的操作直到这个数等于 0,最后将向量逆序输出即为所求。#include<bits/stdc++.h>
using namespace std;……
1054: 二级C语言-计算素数和
摘要:写一个函数把 n~m 之间的每个数都判断一遍,true 的打印,false 的跳过。#include<bits/stdc++.h>
using namespace std;
bool sush……
1621: 蓝桥杯算法训练VIP-字符串编辑
摘要:C++ string 自带的各种成员函数很方便,直接用就行。#include<bits/stdc++.h>
using namespace std;
int main(){
stri……
回文数(二) (C语言) 简单易懂
摘要: #include
#include
#include
#define N 100
void char_to_short(char str[],short……