Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Count Consecutive Summers by OrginalS
def count_consecutive_summers(num):
res = 1
for i in range(1,num):
x = 0
for j in range(i,num):
x += j
if x == num:
res += 1
return res
Sept. 4, 2019