Rezultati

Up. imeNalogaJezikRezultatČas oddaje
muzik-2018 Zgoščenke Python 3 100/100OK 04. okt '18 @ 18:19

Test Točke Porabljen spomin Porabljen čas Status
#1 11/11 8,586 MiB 0,000 s OK
#2 11/11 8,527 MiB 0,000 s OK
#3 11/11 8,586 MiB 0,000 s OK
#4 11/11 8,531 MiB 0,000 s OK
#5 11/11 8,598 MiB 0,000 s OK
#6 11/11 8,520 MiB 0,000 s OK
#7 11/11 8,664 MiB 0,000 s OK
#8 11/11 8,668 MiB 0,000 s OK
#9 12/12 8,523 MiB 0,000 s OK

Ocenjevani program (zgo.py):
N = int(input())

p = list(map(float, input().split()))

su = 1
for j in range(len(p)):
    pj = p[j]
    cur = pj
    den = 1
    for i in range(j):
        den -= p[i]
    su *= (cur/den)

print(1/su)