⌨️ Algorithms/백준
[Python] 백준 11021번_A+B - 7
monzheld
2022. 6. 29. 12:13
https://www.acmicpc.net/problem/11021
11021번: A+B - 7
각 테스트 케이스마다 "Case #x: "를 출력한 다음, A+B를 출력한다. 테스트 케이스 번호는 1부터 시작한다.
www.acmicpc.net
import sys
T = int(input())
for i in range(T):
A,B = map(int, sys.stdin.readline().split())
print('Case #{0}: {1}'.format(i+1, A+B)) # i는 0부터 4까지이므로 i+1