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

最新文章

  1. Windows Server 2008 R2 下配置TLS1.2,添加自签名证书
  2. 还原数据库:The backup set holds a backup of a database other than the existing database……
  3. HTML5的新增方法
  4. mysql主从复制的一些东西的整理
  5. 401 Palindromes(回文词)
  6. JS加解密URL参数encodeURIComponent() decodeURIComponent()
  7. UINavigationController切换视图的简单使用
  8. 设置Eclipse中文API提示信息
  9. Qt QtableView使用
  10. Java内存管理思维导图
  11. 如何维持App拥护登录状态(仅仅理论)
  12. Java学习10——package和import
  13. 电子科技大学第九届ACM趣味程序设计竞赛(热身赛)题解
  14. VS2015配置OpenCV,使用mfc摄像头程序测试
  15. springboot 学习之路 20 (整合RabbitMQ)
  16. vue中filter的用法
  17. 第07章:MongoDB-CRUD操作--文档--创建
  18. lufylegend:动画
  19. Codeforces Round #542 [Alex Lopashev Thanks-Round] (Div. 1)
  20. JavaScript多个h5播放器video,点击一个播放其他暂停

热门文章

  1. HDU - 4758 Walk Through Squares (AC自己主动机+DP)
  2. sizeof()函数的使用——————【Badboy】
  3. nyoj--1239--引水工程(最小生成树)
  4. nyoj--18--The Triangle(dp水题)
  5. Web前端错题模糊题记录
  6. Oracle数据库to_date函数注意事项
  7. (转载)Android中的Service:Binder,Messenger,AIDL(2)
  8. php 生成 guid
  9. javascript满天小星星
  10. + (void)initialize vs 静态构造方法