코팅테스트/백준 문제 모음
백준 11021번 파이썬 문제풀이(출력)
유지광이
2021. 8. 27. 14:02
728x90
-> 여기서 생각해야할 점은 Case #1 <-숫자를 어떻게 표현할것인지에 대한 것이다. 파이썬은 format이라는 것을 출력구문에 지원한다.
나의 코드
import sys
t = int(sys.stdin.readline())
for i in range(1,t+1):
a,b = map(int,sys.stdin.readline().split())
print("Case #{0}:".format(i),a+b)
728x90