https://www.acmicpc.net/problem/11021


풀이

기존 [파이썬/Python] 백준 10950번 A+B - 3 문제에서 출력 부분에서 f-format을 이용해 정리해준다.

T = int(input())

test_case = []

for i in range(T):
    test_case.append(list(map(int,input().split())))

for x in range(T):
    print(f"Case #{x+1}: {test_case[x][0]+test_case[x][1]}")

 

 

+ Recent posts