代码:
n=int(input())
list1=list(map(int,input().split()))
set1=set()
set1.add(0)
for i in list1:
for j in list(set1):
set1.add(i+j)
set1.add(abs(i-j))
print(len(set1)-1)
代码:
for i in range(1,100):
b=i*2019
b=str(b)
c=0
L=len(b)
for j in b:
if int(j)%2==1:
c+=1
if c==L:
print(b)
break