bj11022 A+B - 8

coh·2022년 5월 20일
0

백준

목록 보기
1/27
tc = int(input())

for i in range(1, tc+1):
    a, b = map(int, input().split())
    ans = a + b
    print(f'Case #{i}: {a} + {b} = {ans}')

그냥 input data를 어떻게 받을 것인지
그 data를 어떻게 출력할 수 있는지에 대한 문제였다.

print('Case #%s: %s + %s = %s' % (i, a, b, ans))

로 출력 형식을 지정해도 되겠네.

profile
Written by coh

0개의 댓글