You are viewing a single comment's thread. Return to all comments →
why my second case isn't executed? t = int(input().strip())
for a0 in range(t):
n = int(input().strip()) summ_bracket = 0 sum_s = 0 for i in range(1,n+1): summ_bracket+=i sum_s += i**2 print((summ_bracket)**2-sum_s)
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #6: Sum square difference
You are viewing a single comment's thread. Return to all comments →
why my second case isn't executed? t = int(input().strip())
for a0 in range(t):