没有合适的资源?快使用搜索试试~ 我知道了~
hackerchenzhuo#ccf_pat_leetcode.etc#PAT 1019 General Palindromic
需积分: 0 0 下载量 167 浏览量
2022-07-25
14:26:47
上传
评论
收藏 2KB MD 举报
温馨提示
试读
原创:PAT 1019 General Palindromic Number (20 分)A number that will be the same when
资源推荐
资源详情
资源评论
# 原创:PAT 1019 General Palindromic Number (20 分)
A number that will be the same when it is written forwards or backwards is known as a **Palindromic Number**. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.
Although palindromic numbers are most often considered in the decimal system, the concept of palindromicity can be applied to the natural numbers in any numeral system. Consider a number N>0 in base b≥2, where it is written in standard notation with k+1 digits ai as ∑i=0k(aibi). Here, as usual, 0≤ai<b for all i and ak is non-zero. Then N is palindromic if and only if a
点击阅读更多
资源评论
RandyRhoads
- 粉丝: 26
- 资源: 296
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功