hiho week 247 register

Ended

Participants:135

Verdict:Accepted
Score:100 / 100
Submitted:2019-03-26 15:27:49

Lang:Python2

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import math
PQN = [int(i) for i in raw_input().split()]
f = [0] * 101
f[100] = 1
for i in range(99-1-1):
    j = min(i + Q100)
    f[i] = i * 1.0 / 100 + (1 - i * 1.0 / 100) * (f[j] + 1)
s = 0
m = min(N7)
for i in range(m):
    pi = int(math.floor(P/pow(2i)))
    s += f[pi]
s += f[0] * (max(N-70))
print(s)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX