字符串
未言笑
这个作者很懒,什么都没留下…
展开
-
蓝桥杯拼音字母
#include <iostream>#include <string>using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or input loop *///把题目的意思搞清楚之后,发现这道题还是不难地...原创 2019-05-18 23:12:31 · 192 阅读 · 0 评论 -
蓝桥杯信号匹配
/*标题:信号匹配 从X星球接收了一个数字信号序列。 现有一个已知的样板序列。需要在信号序列中查找它首次出现的位置。这类似于串的匹配操作。 如果信号序列较长,样板序列中重复数字较多,就应当注意比较的策略了。可以仿照串的KMP算法,进行无回溯的匹配。这种匹配方法的关键是构造next数组。 next[i] 表示第i项比较失配时,样板序列向右滑动,需要重新比较的项的序...原创 2019-05-14 17:14:51 · 158 阅读 · 0 评论 -
蓝桥杯空白格式化
#include <iostream>using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or input loop */void f(char* from, char* to){ char* p_from = f...原创 2019-05-15 16:35:50 · 258 阅读 · 0 评论 -
蓝桥杯密文匹配
#include <iostream>#include <string>#include <map>#include <algorithm>using namespace std;/* run this program using the console pauser or add your own getch, system("paus...原创 2019-05-11 23:06:20 · 162 阅读 · 0 评论