728x90
반응형
split 함수를 사용해주면 쉽게 풀린다.
for _ in range(int(input())):
print(sum(map(int , input().split(','))))
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 1439번 뒤집기(python) (0) | 2021.01.30 |
---|---|
백준 알고리즘 5585번 거스름돈(python) (0) | 2021.01.30 |
백준 알고리즘 1654번 랜선 자르기(python) (0) | 2021.01.28 |
백준 알고리즘 2110번 공유기 설치(python) (0) | 2021.01.28 |
백준 알고리즘 1764번 듣보잡(python) (0) | 2021.01.28 |