You are viewing a single comment's thread. Return to all comments →
if name == 'main':
T = int(input()) total_sum = 0 for _ in range(T): n = int(input()) total_sum += n print(str(total_sum)[:10])
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #13: Large sum
You are viewing a single comment's thread. Return to all comments →
Python3
if name == 'main':