-
BaekJoon[4796]코딩/백준 그리디 문제 2023. 2. 17. 18:26
import sys c=1 while True: L, P, V = map(int, sys.stdin.readline().strip().split()) if L==0: break a=V//P b=V%P value=str(L*a+(b if b<=L else L)) print(f"Case {str(c)}: {value}") c += 1
'코딩 > 백준 그리디 문제' 카테고리의 다른 글
BaekJoon[1783] (0) 2023.02.18 BaekJoon[1213] (0) 2023.02.17 BaekJoon[2437] (0) 2023.02.17 BaekJoon[1449] (0) 2023.02.17 BaekJoon[1789] (0) 2023.02.17