def solution(elements): N = len(elements) elements = elements * 2 answer = 0 a = set() for i in range(1,N+1) : for j in range(N) : a.add(sum(elements[j:j+i])) answer = len(a) return answer