https://www.acmicpc.net/problem/11021
11021번: A+B - 7
각 테스트 케이스마다 "Case #x: "를 출력한 다음, A+B를 출력한다. 테스트 케이스 번호는 1부터 시작한다.
www.acmicpc.net
import sys
for i, a in zip(range(1, int(input())+1), sys.stdin):
print("Case #%d: %d" % (i, sum(map(int, a.split()))))
'알고리즘 > 백준' 카테고리의 다른 글
[Python] 백준 2438번 - 별 찍기 - 1 (0) | 2020.06.09 |
---|---|
[Python] 백준 11022번 - A+B - 8 (0) | 2020.06.09 |
[Python] 백준 2742번 - 기찍 N (0) | 2020.06.09 |
[Python] 백준 2741번 - N 찍기 (0) | 2020.06.09 |
[Python] 백준 15552번 - 빠른 A+B (0) | 2020.06.09 |
댓글