回文数判定
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
判断整数n是否为回文数。
回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。
如0是回文数,121是回文数,1221也是回文数。
难度++:你能不将整数转为字符串来解决这个问题吗?
Input Format
一个整数n(0 ≤ n ≤ 100000)。
Output Format
如果n为回文数,输出yes,否则输出no。
121
yes
Source
基础百练 数组与字符串
寒假入门练习赛【3】
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 7
- Start at
- 2020-2-10 20:00
- End at
- 2020-2-11 23:59
- Duration
- 28 hour(s)
- Host
- Partic.
- 18