【projecteuler.net】題目 48

新博客地址:http://gorthon.sinaapp.com/

Problem 48


The series, 11 + 22 + 33 + ... + 1010 = 10405071317.

Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.


>>> str(sum([i**i for i in range(1,1001)]))[-10:]
'9110846700'
>>> 


發佈了51 篇原創文章 · 獲贊 8 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章