본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 27194번 Meeting Near the Fountain

by 현장 2024. 7. 10.

-Code

from math import ceil
n, t = map(int, input().split())
m = int(input())
x, y = map(int, input().split())

out_time = m / (60 * x)
in_time = (n - m) / (60 * y)
res = max(out_time + in_time - t, 0)
print(ceil(res))