지나가던 개발자
[Python] 백준 3058번(짝수를 찾아라) 문제 풀이 본문
test_data = []
for i in range(int(input())):
test_data.append(list(map(int, input().split())))
for i in range(len(test_data)):
test_data[i] = [x for x in test_data[i] if x%2==0]
print(sum(test_data[i]), min(test_data[i]))
'PS > Python' 카테고리의 다른 글
[Python] 백준 10814번(나이순 정렬) 문제 풀이 (0) | 2022.02.19 |
---|---|
[Python] 백준 5596번(시험 점수) 문제 풀이 (0) | 2022.02.18 |
[Python] 백준 2845번(파티가 끝나고 난 뒤) 문제 풀이 (0) | 2022.02.18 |
[Python] 백준 4504번(배수 찾기) 문제 풀이 (0) | 2022.02.18 |
[Python] 백준 10797번(10부제) 문제 풀이 (0) | 2022.02.18 |
Comments