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
"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
"4067:回文数字(Palindrome Number)" 总时间限制: 1000ms 内存限制: 65536kB 描述 给出一系列非负整数,判断是否是一个回文数。回文数指的是正着写和倒着写相等的数。 输入 若干行,每行是一个非负整数(不超过99999999) 输出 对每行输入,如果其是一个回文数 ...
分类:
其他好文 时间:
2019-02-07 17:38:57
阅读次数:
192
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
算法描述: 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
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
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
链接源: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 题意 : $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