题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=342
题意镜像和回文串判断
代码:
#include
#include
using namespace std;
int main()
{
char s[30];
w...
分类:
其他好文 时间:
2014-11-30 23:17:11
阅读次数:
196
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-11-30 22:55:07
阅读次数:
272
#include #include #include #define N 1002
using namespace std; int f[N];
bool d[N][N];
/* 如果(i,j)回文(i>t; while(t--) { string s; cin>>s; n=s.length(); ...
分类:
其他好文 时间:
2014-11-28 21:26:20
阅读次数:
234
Palindromes _easy version
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 22866 Accepted Submission(s): 14213
Problem Description
“回文串”是一个...
分类:
其他好文 时间:
2014-11-28 10:17:54
阅读次数:
149
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-11-27 06:44:59
阅读次数:
215
废话不哆嗦,贴代码:
/*
ID:twd30651
PROG:dualpal
LANG:C++
*/
#include
#include
#include
#include
using namespace std;
char s[100];
int N,S;
void gs(int num,int BASE)
{
int index=0;
while(num/BASE...
分类:
其他好文 时间:
2014-11-25 23:42:41
阅读次数:
260
A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string"ABCDEDCBA"is a palindrome because...
分类:
其他好文 时间:
2014-11-17 15:45:48
阅读次数:
161
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-11-15 09:58:31
阅读次数:
222
Problem H: Partitioning by Palindromes
We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, 'racecar' is a palindrome, but 'fastcar' is not...
分类:
其他好文 时间:
2014-11-09 18:08:19
阅读次数:
140
Problem H: Partitioning by Palindromes
We say a sequence of characters is a palindrome if it is the same written forwards and backwards. For example, 'racecar' is a palindrome, but 'fastcar' is not...
分类:
数据库 时间:
2014-11-08 15:16:07
阅读次数:
150