当前位置:网站首页>openjudge:判断字符串是否为回文
openjudge:判断字符串是否为回文
2022-07-28 05:18:00 【编程器系统】
描述
输入一个字符串,输出该字符串是否回文。回文是指顺读和倒读都一样的字符串。
输入
输入为一行字符串(字符串中没有空白字符,字符串长度不超过100)。
输出
如果字符串是回文,输出yes;否则,输出no。
实例输入
abcdedcba
实例输出
yes
代码
a = input()
if a == a[::-1]:
print('yes')
else:
print('no')边栏推荐
- SSM project quick build project configuration file
- 自定义Json返回数据
- mybaties foreach多选查询,index循环,取消and/or标签
- 21 day SQL punch in summary
- 架构设计思考之一(SSO设计)
- [slam] lvi-sam analysis - Overview
- docker 部署 mysql5.7.35
- 个人写的一个文件上传工具网站
- C language characters and strings
- Google browser cannot open localhost:3000. If you open localhost, you will jump to the test address
猜你喜欢

JMeter related knowledge sorting

7. < tag string and API trade-offs> supplement: Sword finger offer 05. replace spaces

The solution after the samesite by default cookies of Chrome browser 91 version are removed, and the solution that cross domain post requests in chrome cannot carry cookies

latex和word之间相互转换

FusionGAN代码学习(一)

The most detailed installation of windows10 virtual machine, install virtual machine by hand, and solve the problem that the Hyper-V option cannot be found in the home version window

MySQL practice 45 lectures

Tomato timing dimming table lamp touch chip-dlt8t10s-jericho

Google browser cannot open localhost:3000. If you open localhost, you will jump to the test address

论文写作用词
随机推荐
MySQL uses list as a parameter to query
测试开发---自动化测试中的UI测试
The most detailed installation of windows10 virtual machine, install virtual machine by hand, and solve the problem that the Hyper-V option cannot be found in the home version window
When SQL queries the list, the data is inconsistent twice, and limit is automatically added
lamda 获取当前循环数,AtomicInteger
ECCV22 最新54篇论文主图整理
使用navicat或plsql导出csv格式,超过15位数字后面变成000(E+19)的问题
Example of main diagram of paper model
visio如何快速生成相同的图案,生成图像矩阵
Invalid bound statement (not found): com.exam.mapper.UserMapper.findbyid
repackag failed: Unable to find main class
List < long >, list < integer > convert each other
自定义Json返回数据
Feignclient calls the get method and reports an error resultvo{result= unknown exception. Exception details: request method 'post' not supported
多线程进阶:synchronized底层原理,锁优化、锁升级的过程
MySQL basic query
Response<T>类
科研论文写作方法:在方法部分添加分析和讨论说明自己的贡献和不同
架构设计思考之一(SSO设计)
How should programmers keep warm when winter is coming