코테 대비 python/백준
11022 f string은 무적이다
ylab
2023. 1. 30. 20:38
https://www.acmicpc.net/problem/11022
11022번: A+B - 8
각 테스트 케이스마다 "Case #x: A + B = C" 형식으로 출력한다. x는 테스트 케이스 번호이고 1부터 시작하며, C는 A+B이다.
www.acmicpc.net
import sys
input=sys.stdin.readline
T=int(input())
for _ in range(T):
a,b=map(int,input().split())
c = a+b
i=_+1
print(f"Case #{i}: {a} + {b} = {c}")