Again Palindromes
Input: Standard Input
Output: Standard Output
Time Limit: 2 Seconds
A palindorme is a sequence of one or more characters that reads the same from the left as it does from th...
分类:
其他好文 时间:
2015-01-26 22:50:54
阅读次数:
205
【题目】
Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of...
分类:
其他好文 时间:
2015-01-20 22:21:27
阅读次数:
153
Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of convertin...
分类:
其他好文 时间:
2015-01-12 00:25:55
阅读次数:
197
思路:从中间分开,判断左右的字符是否相等,如果相等就继续循环判断,不相等就跳出。
如果左右下标都到头了,则是回文串,否则就不是。...
分类:
其他好文 时间:
2015-01-03 13:14:06
阅读次数:
143
描述: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...
分类:
其他好文 时间:
2014-12-24 19:57:39
阅读次数:
127
Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of convertin...
分类:
其他好文 时间:
2014-12-15 09:03:15
阅读次数:
154
ANo to Palindromes!题意:给一个长度为n的用前m个字符构成的字符串,定义一个字符串是好的当且仅当他的每个子串都不是回文的,现在给出一个好的字符串,求比他字典序大的第一个好的字符串。题解:从后往前每一位枚举,若把当前枚举的位改成ch后为好的串,只需要判断他和他前面的一个字符是否相同构...
分类:
其他好文 时间:
2014-12-11 00:03:20
阅读次数:
191
Problem Description “回文串”是一个正读和反读都一样的字符串,比如“level”或者“noon”等等就是回文串。请写一个程序判断读入的字符串是否是“回文”。Input输入包含多个测试实例,输入数据的第一行是一个正整数n,表示测试实例的个数,后面紧跟着是n个字符串。每个字符串长度不...
分类:
编程语言 时间:
2014-12-09 22:40:05
阅读次数:
199
Palindromes
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld
& %llu
Submit Status
Description
A regular palindrome is a string of numbers or letters that is the same for...
分类:
其他好文 时间:
2014-12-08 09:21:11
阅读次数:
187
题目链接:Palindromes
UVA - 401
Palindromes
Time Limit:3000MS
Memory Limit:Unknown
64bit IO Format:%lld & %llu
SubmitStatus
Description
A regular palindrome is a...
分类:
其他好文 时间:
2014-12-01 19:19:29
阅读次数:
203