标签:python
title:
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
37107287533902102798797998220837590246510135740250
翻译:
请计算出下面100个50位数字的和的(左数)前10位数字。
解答:
import fileinput f=open("13.txt","r") m=0 for i in range(100): s=f.readline() m+=int(s) print m
projecteuler---->problem=13----Large sum,布布扣,bubuko.com
projecteuler---->problem=13----Large sum
标签:python
原文地址:http://blog.csdn.net/q745401990/article/details/27823189