码迷,mamicode.com
首页 >  
搜索关键字:palindrome    ( 1561个结果
HDU - 5785:Interesting (回文树,求相邻双回文的乘积)
Alice get a string S. She thinks palindrome string is interesting. Now she wanna know how many three tuple (i,j,k) satisfy 1≤i≤j<k≤length(S) , S[i..j] ...
分类:其他好文   时间:2019-02-08 13:03:50    阅读次数:244
URAL1297 Palindrome【manacher算法】
"1297. Palindrome" Time limit: 1.0 second Memory limit: 64 MB The “U.S. Robots” HQ has just received a rather alarming anonymous letter. It states tha ...
分类:编程语言   时间:2019-02-07 20:34:01    阅读次数:144
Bailian4067 回文数字(Palindrome Number)
"4067:回文数字(Palindrome Number)" 总时间限制: 1000ms 内存限制: 65536kB 描述 给出一系列非负整数,判断是否是一个回文数。回文数指的是正着写和倒着写相等的数。 输入 若干行,每行是一个非负整数(不超过99999999) 输出 对每行输入,如果其是一个回文数 ...
分类:其他好文   时间:2019-02-07 17:38:57    阅读次数:192
131. Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Example: I ...
分类:其他好文   时间:2019-02-05 23:43:49    阅读次数:148
LeetCode-131-Longest Palindromic Characters
算法描述: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. Exam ...
分类:其他好文   时间:2019-02-05 22:07:25    阅读次数:153
Gym - 101806Q:QueryreuQ(第一次写回文树)
A string is palindrome, if the string reads the same backward and forward. For example, strings like "a", "aa", "appa", "queryreuq" are all palindrome ...
分类:其他好文   时间:2019-02-05 18:08:05    阅读次数:232
回文数
题目: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: ...
分类:其他好文   时间:2019-02-01 17:16:05    阅读次数:188
leetcode 9. Palindrome Number
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: ...
分类:其他好文   时间:2019-01-22 23:03:56    阅读次数:313
回数是指从左向右读和从右向左读都是一样的数,例如12321,909。请利用filter()筛选出回数
链接源:http://taohuayuan.fun/post/2/#coding=utf-8 #计算数值的位数 def places(n): i=0 while n>1: n=n/10 i=i+1 return i #测试1 print(places(1234546)) #is_palindrome... ...
分类:其他好文   时间:2019-01-10 13:06:18    阅读次数:888
20181229模拟 T1 palindrome
20181229模拟 T1 palindrome 题意 : $S$是字符串$s$的子串可重集,求$\sum\limits_{x\in S}\sum\limits_{y\in S}(|x|+|y|)\times [xy\ is \ palidrome]mod\ 2013265921$。 分析: $20 ...
分类:其他好文   时间:2019-01-08 19:26:20    阅读次数:171
1561条   上一页 1 ... 18 19 20 21 22 ... 157 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!