https://paiza.jp/works/mondai/conditions_branch/conditions_branch__complex_step4
私の回答
n=int(input())
array=list(map(int,input().split()))
sum=0
for i in range(n):
if array[i]%2!=0:
break
sum=sum+array[i]
print(sum)
模範回答
n = int(input())
a = [int(x) for x in input().split()]
ans = 0
for ele in a:
if ele % 2 == 1:
break
ans += ele
print(ans)