format을 잘 사용해주자.
for i in range(int(input())):
print("Case #{0}: {1}".format(i+1, sum(list(map(int, input().split())))))
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 11047번 동전 0(python) (0) | 2020.02.16 |
---|---|
백준 알고리즘 11022번 A+B - 8(python) (0) | 2020.02.15 |
백준 알고리즘 11006번 남욱이의 닭장(python) (0) | 2020.02.15 |
백준 알고리즘 10988번 AxB(python) (0) | 2020.02.15 |
백준 알고리즘 10988번 팰린드롬인지 확인하기(python) (0) | 2020.02.15 |