A palindrome is a whole number that reads the same forwards

安静听歌2022-10-04 11:39:541条回答

A palindrome is a whole number that reads the same forwards and backwards.If one neglects the colon.Certain times during a 12-hour period will be palindromes?
(A)57 (B)60 (C)63 (D)90 (E)93

已提交,审核后显示!提交回复

共1条回复
喝茶之辈 共回答了22个问题 | 采纳率95.5%
1年前

相关推荐

【问题描述】编写一函数palindrome(char* s)用于判断任一字符串是否是回文(即顺序读与反序读一样,例如“A
【问题描述】
编写一函数palindrome(char* s)用于判断任一字符串是否是回文(即顺序读与反序读一样,例如“ABCBA”、“121”等)。
【输入】
输入文件有多组测试数据。第一行有一个整数n,它是测试数据组数,(n≤20)。接下来有n行,每行至多有m个字符,(m≤1000)。但是,每一行末尾处的换行字符不能作为这一行的内容。
【输出】
对每一组测试数据,在一行上输出你的判断结果。若是回文串,则输出“YES!”,否则输出“NO!”。
(主函数调用判别函数并输出判别结果)。
【输入样例】
3
ABCBA
121
ABCA
【输出样例】
YES!
YES!
NO!
martinq1年前1
krbde9 共回答了20个问题 | 采纳率90%
/* 判断回数 */
#include
#include
int palindrome(char *p) //判断是否是回数,是则返回1,不是则返回0
{
int i,j;
for(i=0,j=(int)strlen(p)-1;i
Did you know?A palindrome is a number which reads the same f
Did you know?A palindrome is a number which reads the same forwards as backwards e.g.35453.Next year 2002 is an example of a palindromic number.What is the difference between 2002 and the number of the previous palindromic year?
sytcici1年前4
陈小雷 共回答了17个问题 | 采纳率88.2%
The previous palindromic year is 1991.
The difference between 2002 and 1991 is 11.
DId you know A palindrome is a number which reads the same f
DId you know A palindrome is a number which reads the same forwards as backwards e.g.35453.Next year 2002 is an example of a palindromic number.What is the difference between 2002 and the number of the previous(以前) palindromic year?
1小时后就不要了!
logenalba1年前1
sdgt1969 共回答了19个问题 | 采纳率89.5%
请看如下答案:
The nearest previous palindromic year is 1991.
The others are like 1001,1881,1771,1661,1551,1441,1331,1221.1111 etc.