-
11022 f string은 무적이다코테 대비 python/백준 2023. 1. 30. 20:38
https://www.acmicpc.net/problem/11022
11022번: A+B - 8
각 테스트 케이스마다 "Case #x: A + B = C" 형식으로 출력한다. x는 테스트 케이스 번호이고 1부터 시작하며, C는 A+B이다.
www.acmicpc.net
import sys input=sys.stdin.readline T=int(input()) for _ in range(T): a,b=map(int,input().split()) c = a+b i=_+1 print(f"Case #{i}: {a} + {b} = {c}")
'코테 대비 python > 백준' 카테고리의 다른 글
2439 별 찍기 print(,end='') (0) 2023.01.30 2438 print(,end='') (0) 2023.01.30 11021 맨날까먹는 print안에 f사용법 (0) 2023.01.30 15552 import sys (0) 2023.01.30 25304 합,곱 (1) 2023.01.30