Car Talk1
This question is based on a Puzzler that was broadcast on the radioprogram Car Talk1:
“I was driving on the highway the other day and I happened to notice myodometer. Like most odometers, it shows six digits, in whole miles only. So, if my car had 300,000 miles, for example, I’d see 3-0-0-0-0-0.“ Now, what I saw that day was very interesting. I noticed that the last 4 digits were palindromic; that is, they read the same forward as backward. For example, 5-4-4-5 is a palindrome, so my odometer could have read 3-1-5-4-4-5. “One mile later, the last 5 numbers were palindromic. For example, it could have read 3-6-5-4-5-6. One mile after that, the middle 4 out of 6 numbers were palindromic. And you ready for this? One mile later, all 6 were palindromic!
“The question is, what was on the odometer when I first looked?”
from Thinking in Python
最新文章
- Windows Server 2008 R2 下配置TLS1.2,添加自签名证书
- 还原数据库:The backup set holds a backup of a database other than the existing database……
- HTML5的新增方法
- mysql主从复制的一些东西的整理
- 401 Palindromes(回文词)
- JS加解密URL参数encodeURIComponent() decodeURIComponent()
- UINavigationController切换视图的简单使用
- 设置Eclipse中文API提示信息
- Qt QtableView使用
- Java内存管理思维导图
- 如何维持App拥护登录状态(仅仅理论)
- Java学习10——package和import
- 电子科技大学第九届ACM趣味程序设计竞赛(热身赛)题解
- VS2015配置OpenCV,使用mfc摄像头程序测试
- springboot 学习之路 20 (整合RabbitMQ)
- vue中filter的用法
- 第07章:MongoDB-CRUD操作--文档--创建
- lufylegend:动画
- Codeforces Round #542 [Alex Lopashev Thanks-Round] (Div. 1)
- JavaScript多个h5播放器video,点击一个播放其他暂停
热门文章
- HDU - 4758 Walk Through Squares (AC自己主动机+DP)
- sizeof()函数的使用——————【Badboy】
- nyoj--1239--引水工程(最小生成树)
- nyoj--18--The Triangle(dp水题)
- Web前端错题模糊题记录
- Oracle数据库to_date函数注意事项
- (转载)Android中的Service:Binder,Messenger,AIDL(2)
- php 生成 guid
- javascript满天小星星
- + (void)initialize vs 静态构造方法