스파르타코딩 내일배움캠프
스파르타 코딩 클럽: 내일배움캠프 - TIL Day 16 - 2021.9.28.화
시간의 효율화
2021. 9. 28. 21:52
백준 11022
내 코드:
test_case = int(input())
for i in range(test_case):
a, b = map(int, input().split())
c = a + b
print('Case #'+str(i+1)+':', f'{a} + {b} = {c}')
다른 사람 코드:
import sys
c = int(input())
for i in range(c):
a, b = map(int, sys.stdin.readline().split())
print("Case #{}: {} + {} = {}". format(i+1, a, b, a+b))
배운 점:
- format method 출력방법