SWEA 2072번
SWEA 2072 홀수만 더하기 파이썬
파이썬
t = int(input())
for i in range(1,t+1):
cnt = 0
s = list(map(int,input().split()))
for j in s:
if j % 2 ==1:
cnt+=j
print("#"+str(i), str(cnt))
SWEA 2072 홀수만 더하기 파이썬
t = int(input())
for i in range(1,t+1):
cnt = 0
s = list(map(int,input().split()))
for j in s:
if j % 2 ==1:
cnt+=j
print("#"+str(i), str(cnt))
댓글남기기