T = int(input())
answer = []
for test_case in range(1, T + 1):
    result = 0

    data = list(map(int, input().split()))
    for i in range(len(data)):
        if(data[i] % 2 != 0):
            result += data[i]
    answer.append(result)

for i in range(len(answer)):
    print(f'#{i+1} {answer[i]}')

https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QSEhaA5sDFAUq 

 

SW Expert Academy

SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!

swexpertacademy.com

 

728x90

+ Recent posts