Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) ...
分类:
其他好文 时间:
2016-05-30 10:01:28
阅读次数:
192
题意分析: 题目比较容易理解,以d[i]表示前i个字符的最优解,状态转移方程 d[i]=min{d[j]+1| [j+1~i]为回文串} 代码如下: ...
分类:
其他好文 时间:
2016-05-20 19:17:33
阅读次数:
144
Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? ...
分类:
其他好文 时间:
2016-05-20 00:59:52
阅读次数:
187
Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? ...
分类:
其他好文 时间:
2016-05-13 10:10:34
阅读次数:
126
URAL 2040 Palindromes and Super Abilities 2(回文树)...
分类:
其他好文 时间:
2016-05-12 15:34:08
阅读次数:
162
给你一个由小写拉丁字母组成的字符串 ss。我们定义 ss 的一个子串的存在值为这个子串在 ss 中出现的次数乘以这个子串的长度。对于给你的这个字符串 ss,求所有回文子串中的最大存在值。
输入格式一行,一个由小写拉丁字母(a~z)组成的非空字符串 ss。
输出格式输出一个整数,表示所有回文子串中的最大存在值。...
分类:
编程语言 时间:
2016-04-26 12:44:35
阅读次数:
219
Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? ...
分类:
编程语言 时间:
2016-04-15 21:43:44
阅读次数:
152
Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thi ...
分类:
其他好文 时间:
2016-04-15 20:00:38
阅读次数:
152
1、题目名称 Palindromes 2、题目地址 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=342 3、题目内容 A regular palindr ...
分类:
其他好文 时间:
2016-04-15 01:59:58
阅读次数:
154
2780: Poi2006 Palindromes Description A word is called a palindrome if we read from right to left is as same as we read from left to right. For exampl ...
分类:
其他好文 时间:
2016-04-08 18:16:40
阅读次数:
429