You are viewing a single comment's thread. Return to all comments →
import itertools def solve(a): sl = sum(a) acum = list(itertools.accumulate(a)) aset = set(acum) return [a for a in acum if sl % a == 0 and all(b in aset for b in range(a, sl, a))]
Seems like cookies are disabled on this browser, please enable them to open this website
Bus Station
You are viewing a single comment's thread. Return to all comments →