@ -7,9 +7,9 @@ with open('input.txt', 'r') as f:
in_list = [x.strip() for x in in_list]
in_list = [int(x) for x in in_list]
print(in_list)
# print(in_list)
freq = []
freq = set()
res = 0
i = 0
@ -18,9 +18,10 @@ while True:
res += in_list[i]
freq.append(res)
if len(freq) != len(set(freq)):
if res in freq:
break
freq.add(res)
i += 1
print(res)