# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
366886 | haboh | Cooking (innopolis2018_final_B) | Cpython 3 | 22 ms | 3052 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
k, d, t = map(int,input().split())
q = k // d
if k % d != 0:
q += 1
cyc = q * d
hot = k
cold = cyc - k
x = (2 * t) // (2 * hot + cold)
T = x * (hot + cold)
left = 1 - x * hot / t - x * cold / (2 * t)
if hot / t >= left:
T += left * t
else:
T += hot
left -= hot / t
T += left * 2 * t
print("%.9lf" % T)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |