[백준] 1333번 : 부재중 전화 - Python(파이썬)

강재원·2022년 10월 1일
0

[코딩테스트] Python

목록 보기
85/200



https://www.acmicpc.net/problem/1333

n,l,d=map(int,input().split())
l+=5
num=0
time=d
for i in range(n):
    num+=l
    while True:
        if time<num-5: time+=d
        else: break
    if num-5<=time<num: break
print(time)
profile
개념정리 & 문법 정리 & 알고리즘 공부

0개의 댓글