题解 1209: 密码截获

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

Manacher算法O(n)时间复杂度求解回文子串

摘要:算法基础:**manacher算法**(叫**马拉车算法**太Low了😂)manacher算法是一个很质朴的算法,通俗来讲就是“**已掌握信息能用就用,不能用就中心扩展**”,我认为只要看透这个递……

密码截获:模拟 + 剪枝

摘要:解题思路:模拟 + 剪枝注意事项:参考代码:#include<iostream>usingnamespacestd;boolispd(strin……

已是最短了,请放心食用

摘要:解题思路注意事项:参考代码:#include<stdio.h>#include<string.h>int  PalindromeString(char *s)//写一个函数来得到每一轮的结果,返回一个……

java暴力破解(简单易懂)

摘要:解题思路:暴力破解,通过判断每个子序列找到最大长度注意事项:StringBuffer类和String类不能比较,需要进行类型转换参考代码: import java.util.*; import j……

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main {   public static void main(String[] args)    ……

又是一个动态规划的题

摘要:#include<iostream> using namespace std; int main() {     string s;     while(getline(cin,s))  ……

密码截获——python

摘要:解题思路:注意事项:参考代码:while True:    try:        L = input()        L2 = []        if len(L) == 1:         ……