답안 #366886

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
366886 2021-02-15T16:13:01 Z haboh Cooking (innopolis2018_final_B) Python 3
100 / 100
22 ms 3052 KB
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)
    
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 2924 KB Output is correct
2 Correct 16 ms 2796 KB Output is correct
3 Correct 16 ms 2796 KB Output is correct
4 Correct 16 ms 2796 KB Output is correct
5 Correct 16 ms 2796 KB Output is correct
6 Correct 22 ms 2796 KB Output is correct
7 Correct 16 ms 2816 KB Output is correct
8 Correct 17 ms 2796 KB Output is correct
9 Correct 16 ms 2796 KB Output is correct
10 Correct 16 ms 2796 KB Output is correct
11 Correct 17 ms 2796 KB Output is correct
12 Correct 16 ms 2816 KB Output is correct
13 Correct 16 ms 2924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 2796 KB Output is correct
2 Correct 22 ms 2924 KB Output is correct
3 Correct 18 ms 2796 KB Output is correct
4 Correct 20 ms 2796 KB Output is correct
5 Correct 17 ms 2924 KB Output is correct
6 Correct 16 ms 2796 KB Output is correct
7 Correct 16 ms 2796 KB Output is correct
8 Correct 16 ms 2796 KB Output is correct
9 Correct 16 ms 2796 KB Output is correct
10 Correct 16 ms 2796 KB Output is correct
11 Correct 16 ms 2796 KB Output is correct
12 Correct 21 ms 2796 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 2924 KB Output is correct
2 Correct 16 ms 2796 KB Output is correct
3 Correct 16 ms 2796 KB Output is correct
4 Correct 16 ms 2796 KB Output is correct
5 Correct 16 ms 2796 KB Output is correct
6 Correct 22 ms 2796 KB Output is correct
7 Correct 16 ms 2816 KB Output is correct
8 Correct 17 ms 2796 KB Output is correct
9 Correct 16 ms 2796 KB Output is correct
10 Correct 16 ms 2796 KB Output is correct
11 Correct 17 ms 2796 KB Output is correct
12 Correct 16 ms 2816 KB Output is correct
13 Correct 16 ms 2924 KB Output is correct
14 Correct 17 ms 2796 KB Output is correct
15 Correct 16 ms 2796 KB Output is correct
16 Correct 16 ms 2796 KB Output is correct
17 Correct 16 ms 2796 KB Output is correct
18 Correct 16 ms 2796 KB Output is correct
19 Correct 18 ms 3052 KB Output is correct
20 Correct 16 ms 2796 KB Output is correct
21 Correct 16 ms 2796 KB Output is correct
22 Correct 16 ms 2796 KB Output is correct
23 Correct 16 ms 2796 KB Output is correct
24 Correct 16 ms 2796 KB Output is correct
25 Correct 16 ms 2796 KB Output is correct
26 Correct 16 ms 2796 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 2924 KB Output is correct
2 Correct 16 ms 2796 KB Output is correct
3 Correct 16 ms 2796 KB Output is correct
4 Correct 16 ms 2796 KB Output is correct
5 Correct 16 ms 2796 KB Output is correct
6 Correct 22 ms 2796 KB Output is correct
7 Correct 16 ms 2816 KB Output is correct
8 Correct 17 ms 2796 KB Output is correct
9 Correct 16 ms 2796 KB Output is correct
10 Correct 16 ms 2796 KB Output is correct
11 Correct 17 ms 2796 KB Output is correct
12 Correct 16 ms 2816 KB Output is correct
13 Correct 16 ms 2924 KB Output is correct
14 Correct 16 ms 2796 KB Output is correct
15 Correct 22 ms 2924 KB Output is correct
16 Correct 18 ms 2796 KB Output is correct
17 Correct 20 ms 2796 KB Output is correct
18 Correct 17 ms 2924 KB Output is correct
19 Correct 16 ms 2796 KB Output is correct
20 Correct 16 ms 2796 KB Output is correct
21 Correct 16 ms 2796 KB Output is correct
22 Correct 16 ms 2796 KB Output is correct
23 Correct 16 ms 2796 KB Output is correct
24 Correct 16 ms 2796 KB Output is correct
25 Correct 21 ms 2796 KB Output is correct
26 Correct 17 ms 2796 KB Output is correct
27 Correct 16 ms 2796 KB Output is correct
28 Correct 16 ms 2796 KB Output is correct
29 Correct 16 ms 2796 KB Output is correct
30 Correct 16 ms 2796 KB Output is correct
31 Correct 18 ms 3052 KB Output is correct
32 Correct 16 ms 2796 KB Output is correct
33 Correct 16 ms 2796 KB Output is correct
34 Correct 16 ms 2796 KB Output is correct
35 Correct 16 ms 2796 KB Output is correct
36 Correct 16 ms 2796 KB Output is correct
37 Correct 16 ms 2796 KB Output is correct
38 Correct 16 ms 2796 KB Output is correct
39 Correct 20 ms 2796 KB Output is correct
40 Correct 18 ms 2796 KB Output is correct
41 Correct 16 ms 2796 KB Output is correct
42 Correct 16 ms 2940 KB Output is correct
43 Correct 16 ms 2796 KB Output is correct
44 Correct 16 ms 2796 KB Output is correct
45 Correct 16 ms 2796 KB Output is correct
46 Correct 16 ms 2796 KB Output is correct
47 Correct 19 ms 2924 KB Output is correct
48 Correct 16 ms 2796 KB Output is correct
49 Correct 17 ms 2944 KB Output is correct
50 Correct 16 ms 2796 KB Output is correct
51 Correct 17 ms 2936 KB Output is correct
52 Correct 17 ms 2796 KB Output is correct
53 Correct 16 ms 2796 KB Output is correct
54 Correct 16 ms 2796 KB Output is correct
55 Correct 16 ms 2796 KB Output is correct