제출 #112990

#제출 시각아이디문제언어결과실행 시간메모리
112990model_codeCooking (innopolis2018_final_B)Cpython 3
100 / 100
62 ms3556 KiB
k, d, t = map(int, input().split()) if k < d: period = d else: period = ((k + d - 1) // d) * d cooking = period + k num = 2*t // cooking ans = num * period carry = 2*t - num * cooking if carry > 2*k: ans += carry - k else: ans += carry / 2 print('%f' % ans)
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...