Start: Nov, 12, 2017 10:00:00
2017秋Python程序设计基础培训第二次作业
End: Nov, 19, 2017 12:00:00
Time elapsed:
Time remaining:

Problem_ID: D
Result: Accepted
Time: 104ms
Memory: 24436kB
Author: zzhk
In contest: 1122

a=list(map(int,input().split()))
while len(a)>0:
    try:
        if len(a)==a[0]+1:
            s=0
            for i in a[1::]:
                if i % 2 ==1:
                    s+=i
            print(s)
            a=list(map(int,input().split()))
        else:
            print("输入数据错误")
    except EOFError:
        break