Problem40

来源:互联网 发布:mac怎样清理safari缓存 编辑:程序博客网 时间:2024/05/16 23:38

原题:

An irrational decimal(无理小数) fraction is created by concatenating the positive integers:
0.123456789101112131415161718192021...
It can be seen that the 12(th) digit of the fractional part is 1.

If d(n) represents the n(th) digit of the fractional part,
find the value of the following expression.

 

分析:

该小数的小数部分是有自然数序列连接而成

 

代码:

原创粉丝点击