摘要: Problem 13Work out the first ten digits of the sum of the following one-hundred 50-digit numbers....(100个50位数)...为了避免有后面低位进位的情况,取了每个50位数的前13位来运算。1 def pe013BF():2 data = open('013.txt', "r")3 sum1 = str(sum([int(line[:13]) for line in data]))[:10]4 return sum15 6 if __name__ ==  阅读全文
posted @ 2012-12-08 10:52 river_run 阅读(268) 评论(0) 推荐(0) 编辑