[백준11021_파이썬(python)] - A+B - 7

경이·2021년 6월 22일
0
post-thumbnail

🔴 문제

A+B - 7


🟡 Sol

import sys
T = int(sys.stdin.readline())

for i in range(T):
    A, B = map(int, sys.stdin.readline().split())
    print("Case #%d: %d" %(i+1 ,A+B))

🟢 풀이

포매팅으로 출력했다.
일반적으로 출력하면 띄어쓰기가 포함되어 출력되어서 오류발생.


🔵 Ref

https://wikidocs.net/13#_16

profile
이사중입니다!🌟https://velog.io/@devkyoung2

0개의 댓글