Problem:
 Score : 200 points    Problem Statement Given is a sequence of N integers A_1, \ldots, A_N .  Find the (multiplicative) inverse of the sum of the inverses of these numbers, \frac{1}{\frac{1}{A_1} + \ldots + \frac{1}{A_N}} .      Constraints  1 \leq N \leq 100  1 \leq A_i \leq 1000         Input Input is given from Standard Input in the following format:  N  A_1  A_2  \ldots  A_N       Output Print a decimal number (or an integer) representing the value of \frac{1}{\frac{1}{A_1} + \ldots + \frac{1}{A_N}} .  Your output will be judged correct when its absolute or relative error from the judge's output is at most 10^{-5} .        Sample Input 1 2
10 30      Sample Output 1 7.5  \frac{1}{\frac{1}{10} + \frac{1}{30}} = \frac{1}{\frac{4}{30}} = \frac{30}{4} = 7.5 .  Printing 7.50001 , 7.49999 , and so on will also be accepted.       Sample Input 2 3
200 200 200      Sample Output 2 66.66666666666667  \frac{1}{\frac{1}{200} + \frac{1}{200} + \frac{1}{200}} = \frac{1}{\frac{3}{200}} = \frac{200}{3} = 66.6666... .  Printing 6.66666e+1 and so on will also be accepted.       Sample Input 3 1
1000      Sample Output 3 1000  \frac{1}{\frac{1}{1000}} = 1000 .  Printing +1000.0 and so on will also be accepted.

Solution (Python):
n=int(input())

t = list(map(int,input().split()))

bunbo = 0

for i in t:
    bunbo += 1/i
print(1/bunbo)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
sum=0
i=0
while i<=N-1:
  sum+=1/A[i]
  i+=1
rev=1/sum
print(rev)

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

def main():
    N = int(input())
    A = input_nums()
    print(1/sum([1/a for a in A]))

if __name__ == '__main__':
    main()

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=INT()
    l=LIST()
    temp=0
    for i in l:
        temp+=(1/i)
    print(1/temp)
if __name__ == '__main__':
    do()

Solution (Python):
N = int(input())
total = 0
num = 0
num = [1 / int(x) for x in input().split()]
for x in range(N):
  total += num[x]
print(1/total)

Solution (Python):
input()
revA = [1 / float(a) for a in input().split(" ")]
print(1 / sum(revA))

Solution (Python):
N = int(input())
A = [int(x) for x in input().split()]

A1 = 0

for i in A:
    A1 += 1 / i

print(1 / A1)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))

for i in range(n):
  a[i]=a[i]/(a[i]**2)
b=sum(a)

print('{:.12g}'.format(b/(b**2)))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
sum=0
product=1
for i in range(n):
  sum+=1/a[i]
print(1/sum)

Solution (Python):
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))

n = ii()
A = iil()

prod = 1
for item in A:
    prod *= item

frac = 0
for item in A:
    frac += prod//item

print(prod/frac)

Solution (Python):
n=int(input())
a = list(map(int, input().split()))
ans=0
for i in a:
    ans+=1/i

ans=1/ans
print(ans)

Solution (Python):
n = int(input())
a_list = list(map(int, input().split()))
mapped = list(map(lambda x: 1/x, a_list))
print(1 / sum(mapped))

Solution (Python):
N = int(input())
a = list(map(int, input().split()))
sum = 0
for i in a:
    sum += 1 / i
print(1 / sum)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
s=0
for i in range(n):
  s+=1.0/a[i]
print(1.0/s)

Solution (Python):
N=int(input())
A=list(map(float,input().split()))

C=0
for i in range(N):
  C+=1/A[i]
print(1/C)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
ans = 0.0

for i in a:
  ans = ans + 1/i
  
ans = 1/ans
print(ans)

Solution (Python):
N=int(input())
A=list(map(int, input().split()))

print(1/sum([1/a for a in A]))

Solution (Python):
n = int(input())
a = [int(x) for x in input().split()]
t = 1
for i in range(n):
    t *= a[i]
b = 0
c = 1
for i in a:
    b += t//i
    c *= i
print(c/b)

Solution (Python):
a = input()
print(1 / sum(1/int(i) for i in input().split()))

Solution (Python):

import sys


def solve(N: int, A: "List[int]"):
    from fractions import Fraction
    return float(Fraction(1, sum(Fraction(1, a) for a in A)))



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    A = [int(next(tokens)) for _ in range(N)]  
    print(solve(N, A))

if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
b = [1/i for i in a]
print(1/sum(b))

Solution (Python):
def resolve():
    n = int(input())
    a = list(map(int, input().split()))
    ans = 0

    for i in range(n):
        ans += 1/a[i]
    ans = 1/ans
    print(ans)
resolve()

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
for i in range(N):
  if i == 0:
    ans = 1/A[i]
  else:
    ans += 1/A[i]
print(1/ans)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
result = 0
for i in range(n):
    if i == 0:
        result =  (1 / a[i])
    else:
        result = result + (1 / a[i])

ans = 1 / result

print(ans)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
ans = 0
for i in A:
    ans += 1/i
print(1/ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
ans = 0

for i in range(n):
    ans = ans + 1/a[i]

ans = 1/ans
print(ans)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
ans=0

for i in range(n):
  ans+=1/a[i]
  
print(1/ans)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
sum=0
for num in(A):
  sum+=1/num
print(1/sum)

Solution (Python):
from fractions import Fraction

_ = int(input())
A = list(map(int, input().split()))

x = 0
for i in A:
  x += Fraction(1, i)

print(float(x.denominator / x.numerator))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
ans = 0

for i in range(n):
  ans += 1/a[i]
print(1/ans)

Solution (Python):
n = int(input())
ans = 0
a = list(map(int,input().split()))

for i in range(n):
    ans += 1/a[i]
print(1/ans)

Solution (Python):
import sys
input = sys.stdin.readline

def main():
    N = int(input())
    A = list(map(int, input().split()))

    ans = 0
    for x in A:
        ans += (1 / x)

    print(1/ans)



if __name__ == "__main__":
    main()

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
print(1/sum([1/x for x in a]))

Solution (Python):
def main():
    n = int(input())
    a = [int(x) for x in input().split()]
    ans = 0

    for v in a:
        ans += 1/v
    print(1/ans)

main()

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
a = 0
for i in range(N):
    a = a+(1/A[i])

print(1/a)

Solution (Python):

import sys
def input():
    return sys.stdin.readline().rstrip()

def main():
    N = int(input())

    print(1/sum([1/int(x) for x in input().split()]))



if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
A = [1 / int(i) for i in input().split()]

print("{:.9f}".format(1 / sum(A)))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
asa = 0
for i in range(n):
     asa += 1/a[i]
print(1/asa)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

ans = 0.0

for a in A:
  ans += 1.0/a
  
print(1.0/ans)

Solution (Python):

n=int(input())
a =list(map(int,input().split()))
ans = 0
for i in range(n):
    ans += 1./a[i]

print(1./ans)

Solution (Python):
import sys
import numpy as np

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N = ir()
A = np.array(lr())
answer = 1 / sum(1 / A)
print('{:.10f}'.format(answer))

Solution (Python):
n = int(input())
num = list(map(int, input().split()))
ans = 0
for i in num:
  ans += float(1/i)
print(float(1/ans))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

m = 1
l = 0
for i in range(n):
    m = m * a[i]

for i in range(n):
    t = m / a[i]
    l += t

print(m/l)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

total = 0
for i in a:
    total += (1/i)

print(1/total)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

denominator = 0
for i in range(n):
    denominator += (1/a[i])
print(1/denominator)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
    ans += 1/a[i]
print(1/ans)

Solution (Python):
N = int(input())
A = [int(e) for e in input().split()]
V = 0
for i in range(N):
    V += 1/A[i]
print(1/V)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
total = 0

for i in range(n):
  total += 1/a[i]
print(1/total)

Solution (Python):



n = int(input())
a_list = list(map(int, input().split()))


tmp_sum = 0


for a in a_list:
    tmp_sum += 1 / a


print(1 / tmp_sum)

Solution (Python):
n=int(input())
A=list(map(int,input().split()))
ans=0
for a in A:
    ans+=1/a
print(1/ans)

Solution (Python):
n=int(input())
a = list(map(int,input().split()))
ma = 0
for i in range(n):
    ma += 1/a[i]
print(1/ma)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
res = 0
for key in a:
    res += 1/key
print(1/res)

Solution (Python):
N = int(input())
A = list(map(lambda x: 1 / int(x), input().split()))

print(1 / sum(A))

Solution (Python):
n = input()
x = map(int,raw_input().split())
s = 0
for i in x:
    s += 1.0/i
print 1.0/s

Solution (Python):

N = int(input())
A = list(map(int,input().split()))

wa = 0
for i in range(N):
    wa += 1/A[i]

print(1/wa)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
ans = 0
for i in range(n):
    ans += 1/a[i]
print(1/ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

ans = 0
for i in range(N):
    ans += 1 / A[i]
ans = 1 / ans
print(ans)

Solution (Python):

n=int(input())
a=list(map(int,input().split()))
sum=0
for i in a:
    sum+=1/i
print(1/sum)

Solution (Python):

n = int(input())
a = list(map(int, input().split()))
a = [1 / a[i] for i in range(n)]
print(1 / sum(a))

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
b = 0

for i in range(n):
  b += 1/a[i]

print(1/b)

Solution (Python):












n = int(input())
arrA = list(map(int,input().split()))

bunsi = 1
for i in arrA:
    bunsi *= i

bunbo = 0
for i in arrA:
    bunbo += bunsi/i

ans = bunsi/bunbo

print(ans)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
ans=0
for i in range(N):
    ans=ans+1/A[i]
ans=1/ans
print(ans)

Solution (Python):
n = int(input())
a = [int(x) for x in input().split()]
res = 0
for i in a:
    res += 1 / i
print(1/res)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
s = 0
for i in range(len(a)):
	s += 1/a[i]

print(1/s)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
sum1 = 0
for i in range(N):
    sum1 += 1/A[i]
print(1/sum1)

Solution (Python):

"""
B - Resistors in Parallel
https://atcoder.jp/contests/abc138/tasks/abc138_b

"""
import sys


def solve(resistors):
    res = 0
    for r in resistors:
        res += 1 / r
    return 1 / res


def main(args):
    N = int(input())
    resistors = [int(a) for a in input().split()]
    ans = solve(resistors)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):

import math

n = int(input())

a = list(map(int, input().split()))

rec_sum = sum(list(map(lambda x: 1/x, a)))

print(1/rec_sum)

Solution (Python):

n = int(input())
A = list(map(int,input().split()))
s = sum([1/i for i in A])
print(1/s)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
ans = A[0]
mother = A[0]
child = 1

for a in A[1::]:
    child = mother + a * child
    mother *= a
    if mother % child == 0:
        common = mother // child
        mother //= common
        child //= common

print(mother/child)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
sita=0
for i in range(n):
    sita+=1/a[i]
print(1/sita)

Solution (Python):

N = int(input())


input_list = input().split( )

ans = 0
for i in range(N):
  ans = ans + 1/int(input_list[i])
  
ans = 1/ans


print(ans)

Solution (Python):
n = int(input())
l = list(map(int,input().split()))
a = 0
for i in range(n):
  a += 1/l[i]
print(1/a)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
b =[]
for i in range(n):
  b.append(1/a[i])
c = sum(b)
print(1/c)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
a=sorted(a,reverse=True)
ans=0
for i in range(n):
  ans+=1/a[i]
print(1/ans)

Solution (Python):
_ = input()
print("{:.16g}".format(1 / sum(1 / x for x in map(int, input().split()))))

Solution (Python):
n=int(input())
A=list(map(int,input().split()))
s=sum([1/i  for i in A])
print(1/s)

Solution (Python):
import math
from fractions import gcd
n = int(input())
a = list(map(int, input().split()))
def lcm(x, y):
	return (x * y) // gcd(x, y)
b = a[0]
for i in a[1:]:
	b = lcm(b,i)

c = 0
for i in a:
	c += b//i
ans = b/c
print (ans)

Solution (Python):
n = int(input())
lis = list(map(int,input().split()))
ing_total = 0

for i in range(n):
    ing_total+= 1 / lis[i]

print(1/ing_total)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
ans=0
for i in A:
    ans += 1/i
print(1/ans)

Solution (Python):
N = int(input())
A = [int(i) for i in input().split()]
ans = 0
for i in range(N):
    k = 1/A[i]
    ans+=k
print(1/ans)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
below = 0
for i in range(n):
    below += 1/a[i]
print(1/below)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
sum = 0
for i in a:
    sum += i**(-1)
print(sum**(-1))

Solution (Python):
def solve():
    N = int(input())
    A = list(map(int, input().split()))
    ans = 0
    for a in A:
        ans += 1 / a
    
    return 1 / ans

print(solve())

Solution (Python):
n=int(input())
l=list(map(int,input().split()))
s=0
for i in l:
    s+=1/i
print(1/s)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))

cal = 0.0
for i in range(N):
    cal += 1/A[i]

print(1/cal)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
a = 0

for i in range(N):
    a += 1/A[i]

print(1/a)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
sum=0
for i in a:
    sum+=1/i
sum=1/sum
print(sum)

Solution (Python):
n = int(input())
a = [1/int(i) for i in input().split()]
print(1/sum(a))

Solution (Python):
N=int(input())
A=input().split()
S=0

for i in range(N):
    S += 1/int(A[i])

print(1/S)

Solution (Python):
input();print(1/sum(1/i for i in map(int,input().split())))

Solution (Python):
N = int(input())
print(1/sum(1/a for a in map(int, input().split())))

Solution (Python):
n = int(input())
den = 0.
for a in map(int, input().split()):
  den += 1. / a
print(1. / den)

Solution (Python):
x=int(input())
y=list(map(int, input().split()))
t=0
k=0
for i in range(x):
	k=y[i]
	t=t+(1/k)
print(1/t)

Solution (Python):
N = int(input())
A = [int(i) for i in input().split()]

ans = 0
for a in A:
    ans += 1 / a

ans = 1 / ans
print(ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

b = 0
for x in a:
  b += 1 / x

print(1 / b)

Solution (Python):
a = input()
list_a = list(map(int, input().split()))

ans = 0
for i in list_a:
  ans += 1/i
  
print(1/ans)

Solution (Python):
N = int(input())
A = list(map(lambda x: int(x) ** (-1), input().split()))
ans = 1 / sum(A)
print(ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
sum = 0
for a in A:
  sum += 1/a
print(1/sum)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

denominator = 0

for ai in A:
    denominator += 1 / ai

print(1 / denominator)

Solution (Python):
N = int(input())
A = list(map(int , input().split()))
asn = 0
for i in A:
    asn += float(1/i)
asn = 1/asn
print(asn)

Solution (Python):
N = int(input())
A = [int(a) for a in input().split()]

ans = 0
for a in A:
    ans += 1 / a

print(1 / ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
up = 0
down = 1
for ai in a:
    down *= ai

for i in range(n)[::-1]:
    
    mul = 1
    for j in range(n-1):
        mul *= a[i-j]
    up += mul
    

ans = down / up
print(ans)

Solution (Python):

n = int(input())
a = list(map(int, input().split()))
div = 0
for i in range(n):
    div += 1/a[i]
ans = 1/div
print(ans)

Solution (Python):
N = int(input())
A = map(int, input().split())

frac_under = 0
for a in A:
    frac_under += 1/a
print(1/frac_under)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
print(1/sum([1/i for i in a]))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
ans=0
for i in a:ans+=1/i
print(1/ans)

Solution (Python):
N = input()
A = map(int, input().split())

l = [1/a for a in A]
print(1/sum(l))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
res = 0
for i in a:
    res += 1 / i
print(1 / res)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
A_gyakusu = [1/A[i] for i in range(N)]
A_gyakusu_wa = sum(A_gyakusu)
print(1/A_gyakusu_wa)

Solution (Python):
N = int(input())
a_list = list(map(int,input().split()))

ans = 0
for i in range(N):
    ans += 1/a_list[i]
ans = 1/ ans
print(ans)

Solution (Python):
N = int(input())
number = input().split(" ")
total= 1
y = 0
for i,a in enumerate(number):
    total *= int(a)
    x = 1
    for j,b in enumerate(number):
        if i == j:
            x *= 1
        else:
            x *= int(b)
    y += x
print(total/y)

Solution (Python):
N = int(input())
Alist = list(map(int, input().split()))
ans = sum([1/a for a in Alist])
print(1/ans)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
ans1 = 0

for count in range(N):
    ans1 = ans1 + 1/A[count]
print(1/ans1)

Solution (Python):
N = int(input())
A_li = list(map(int, input().split()))
inv_A_li = [A_li[i] ** -1 for i in range(N)]
print(1 / sum(inv_A_li))

Solution (Python):
import sys
import math

N=int(input())

li0= [int(x) for x in input().split()]
sum=i=0
for i in range(len(li0)):
  sum+=1/li0[i]
print(1/sum)

Solution (Python):
n = int(input())
A = [int(x) for x in input().split()]

inverse_A = []

for a in A:
    recip_a = 1 / a
    inverse_A.append(recip_a)

sum_invA = sum(inverse_A)

ans = 1 / sum_invA

print(ans)

Solution (Python):
n=int(input())
a = list(map(int, input().split()))

b=[]
for i in a:
    b.append(1.0/i)

print(1.0/sum(b))

Solution (Python):
n = int(input())
ans = 1/sum(list(map(lambda x:1/int(x), input().split())))
print(ans)

Solution (Python):
n = int(input())
a = [float(i) ** -1 for i in input().split()]
print(1 / sum(a))

Solution (Python):
n=int(input())
l=list(map(int,input().split()))
sum_m=0
for i in l:
	sum_m+=1/i
print(1/sum_m)

Solution (Python):
from functools import reduce
n = int(input())
a = list(map(int, input().split()))
prd_tot = reduce(lambda x,y:x*y, a)
deno = sum([prd_tot / ai for ai in a])
print(prd_tot / deno)

Solution (Python):
from sys import stdin

n = int(stdin.readline().rstrip())
a = [1/int(x) for x in stdin.readline().rstrip().split()]

print(1/sum(a))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))

t=0
for i in range(n):
    t += 1/(a[i])
print(1/t)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

bun = 0
for i in range(N):
  bun += 1/A[i]
  
ans = 1/bun
print(ans)

Solution (Python):
n = int(input())
A = list(map(int, input().split()))
list1 = []
for i in A:
  list1.append(1 / i)
print(1 / sum(list1))

Solution (Python):
n = int(input())
A = list(map(int, input().split()))

print(1/sum([1/a for a in A]))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
ans=0
for i in range(n):
    ans+=1/a[i]

print(1/ans)

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()
A = LIST()

tmp = 0
for a in A:
	tmp += 1/a
print(1/tmp)

Solution (Python):
_ = input()
A = tuple(map(int,input().split()))

ans = 0

for a in A:
  ans += 1/a

print(1/ans)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
sum_ = 0
for ai in a:
    sum_ += 1 / ai
print(1 / sum_)

Solution (Python):





import sys

ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

def main():
    n = int(input())
    a = list(map(int,ipti().split()))
    under = 0

    for ele in a:
        under += 1 / ele

    print(1/under)


if __name__ == '__main__':
    main()

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
g=0
for i in range(N):
    g+=1/a[i]
print(1/g)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
arr = [0] * n
for i in range(n):
    arr[i] = 1 / a[i]

print(1/sum(arr))

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
s=0
for i in a:
    s+=1/i
print(1/s)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))

output = 0
for i in range(N):
    output += 1/A[i]

print(1/output)

Solution (Python):
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    N = int(sys.stdin.readline().strip())
    AList = list(map(int, sys.stdin.readline().split()))

    s = [1/a for a in AList]
    print(1/sum(s))


if __name__ == '__main__':
    main()

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
sum=0
for i in range(n):
            sum+=float(1/a[i])
print(float(1/sum))

Solution (Python):
n = int(input())
a = map(int, input().split())

print(1 / sum(1 / i for i in a))

Solution (Python):
n = int(input())
ai = list(map(int, input().split()))

ans = 0

for i in range(n):
    ans += 1/ai[i]

print(1/ans)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))

x = 0
for i in range(N):
  x += 1/A[i]
ans = 1/x

print(ans)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
x = sum([1/a[i] for i in range(n)])

print(1/x)

Solution (Python):


def main():
    n = int(input())
    A = list(map(int, input().split()))
    reciprocal = 0

    for i in range(n):
        reciprocal += 1/A[i]
    
    print(1/reciprocal)

if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
d = list(map(int, input().split()))
for i in range (n):
    d[i] /= d[i]**2
print(1/sum(d))

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
B={}
for i in range(N):
    B[i]=1/A[i]
count=0
for i in range(N):
  count=count+B[i]
print(1/count)

Solution (Python):
N = int(input())
A = [int(i) for i in input().split()]

c = 0

for i in range(N):
  c += (1/A[i])

print(float(1/c))

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
val=0
for i in range(N):
    val+=1/A[i]
print(1/val)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

p = 0
for i in a:
  p += 1/i
print(1/p)

Solution (Python):
n=int(input())
v=list(map(int,input().split()))
print(1/sum(1/x for x in v))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))

time = 1
for i in a:
    time *= i
sums = 0
for j in a:
    sums += time/j
print(time/sums)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
b = [1/i for i in a]
ans = 1/sum(b)
print(ans)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
gyaku_wa = 0
for i in a:
    gyaku_wa += 1/i
print(1/gyaku_wa)

Solution (Python):
import sys
input = sys.stdin.readline
N = int(input())
A = [int(x) for x in input().split()]

r_ans = 0
for i in range(N) :
    r_ans += 1/A[i]

print(1/r_ans)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
ans=0.0
for i in range(n):
    ans+=1.0/a[i]
ans=1.0/ans
print(ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
s = 0
for i in range(0,N):
    s = s+1/A[i]
print (1/s)

Solution (Python):
input()
A=input().split()
print(1/sum(1/int(a) for a in A))

Solution (Python):
input()
A=map(int,input().split())
print(1/sum(1/a for a in A))

Solution (Python):
int(input())
A=map(int,input().split())
print(1/sum(1/a for a in A))

Solution (Python):
int(input())
A=map(int,input().split())
print(1/sum([1/a for a in A]))

Solution (Python):
N=int(input())
A=map(int,input().split())
print(1/sum([1/a for a in A]))

Solution (Python):



def main():
  input()
  print(1 / sum( [1/A for A in map(int, input().strip().split())] ))

if __name__=='__main__':
  main()

Solution (Python):
n = int(input())
A = list(map(int, input().split()))
t = 0
for i in A:
    t += 1/i

print(1/t)

Solution (Python):
N = int(input())
a = list(map(int,input().split()))
b = sum([1/i for i in a])
print(1/b)

Solution (Python):
from decimal import Decimal
n = int(input())
a = tuple(map(Decimal,input().split()))
result = Decimal(0)
for i in range(n):
  result += 1/a[i]
print(1/result)

Solution (Python):
N = int(input())
A = list(map(int,input().split()))
for i in range(N):
  A[i] = 1/A[i]
print(1/sum(A))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))

sum = 0

for i in range(N):
    sum = sum + 1/A[i]
    
print(1/sum)

Solution (Python):
n=int(input())
print(1/sum([1/float(i) for i in input().split()]))

Solution (Python):
N = int(input())
A = list(map(int,input().split()))

s = 0
for i in range (N):
    s += 1/A[i]

print(1/s)

Solution (Python):
import numpy as np
n=int(input())
a=list(map(int, input().split()))
a=np.array(a)
s=np.sum(1/a)
print(1/s)

Solution (Python):
import numpy as np
n = int(input())
a = np.array(list(map(float, input().split())))
a_re = np.reciprocal(a)
ans = 1 / np.sum(a_re)

print(ans)

Solution (Python):

def f(x):
    if x != 0:
        return 1/x
    else:
        return

def main():
    n = int(input())
    s = f(sum([f(int(i)) for i in input().split()]))
    print("{0:.14f}".format(s)) 
main()

Solution (Python):
int(input())
a = list(map(int, input().split()))
print("{:.10f}".format(1/sum(list(map(lambda x: 1/x, a)))))

Solution (Python):
N = int(input())
input_list = list(map(int, input().split()))

sum = 0
for i in input_list:
    sum = (1 / i) + sum

print(1/sum)

Solution (Python):
import sys

n, *A = map(int, sys.stdin.read().split())

def main():
    prod = 1
    for a in A:
        prod *= a
    
    numerator = prod
    denominator = 0
    for a in A:
        denominator += prod // a
    
    return numerator / denominator

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
n = int(input())
l = list(map(int, input().split()))

sum = 0

for i in range(n):
  sum += 1/l[i]
print(1/sum)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
V = []
for n in range(N):
    V.append(1/A[n])
s = sum(V)
print(1/s)

Solution (Python):
n = int(input())
num_lis = list(map(int, input().split()))
s = 0
for i in num_lis:
    s += 1 / i
print(1 / s)

Solution (Python):
n = int(input())
a = map(int, input().split())

print(1/sum([1/aa for aa in a]))

Solution (Python):
N = int(input())
A = list(map(float, input().split()))

ans = 0
for a in A:
    ans += 1 / a

print(1 / ans)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
ans = 1 / sum(map(lambda x: 1 / x, A))
print(ans)

Solution (Python):
def makelist(n, m):
    return [[0 for i in range(m)] for j in range(n)]

N = int(input())
A = list(map(int, input().split()))
hoge = 0
for e in A:
    hoge += 1 / e
print(1/hoge)

Solution (Python):
N=int(input())
a=list(map(int,input().split()))
S=0
for i in a:
    S+=1/i
print(1/S)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
total=0
for i in range(N):
    total+=1/A[i]
print(1/total)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
tmp = 0
for i in range(N):
  tmp += 1/A[i]
print(1/tmp)

Solution (Python):
def readints():
    return list(map(int, input().split()))


n = int(input())
a = readints()
sum = 0
for i in range(n):
    sum += 1/a[i]
print(1/sum)

Solution (Python):
n=int(input())
a=list(map(int, input().split()))
ans=0
for i in range(n):
  ans+=1/a[i]
print(1/ans)

Solution (Python):
n=int(input())
l=list(map(int,input().split()))
l.sort()
sum=0
for i in range(n):
  sum+=1/l[n-i-1]
print(1/sum)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in a:
    ans += 1 / i
print(1 / ans)

Solution (Python):



n = int(input())
a = [int(x) for x in input().split()]
s = 0
for i in a:
    s += 1 / i
print(1 / s)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

bunbo = 0
for i in a:
  bunbo += 1/i

print(1/bunbo)

Solution (Python):
N = int(input())
A = list(map(int, input().split()))
sum_inv = 0
for i in range(N):
    sum_inv += 1 / A[i]
print(1 / sum_inv)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
b=0
for i in range(n):
    b+=1/a[i]
print(1/b)

Solution (Python):
n,a=open(0)
print(1/sum(1/int(i)for i in a.split()))

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
x = 0
for i in range(n):
    x += 1/a[i]
print(1/x)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
x=0
for i in range(n):
            x += 1/a[i]
            
print(1/x)

Solution (Python):
n = int(input())
print(1/sum([1/i for i in map(int,input().split())]))

Solution (Python):




def main():
    N = int(input())
    A = list(map(int, input().split()))
    print(1 / sum([1 / a for a in A]))


if __name__ == "__main__":
    main()

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

res=0
for i in range(n):
  res += 1/a[i]
print(1/res)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))

denomi = 0
for i in range(n):
    denomi += 1/a[i]

print(1/denomi)

Solution (Python):
N=int(input())
A=list(map(int,input().split()))
A=[1/a for a in A]
print(1/sum(A))

Solution (Python):
N = int(input())
A = list(map(int, input().split()))




from fractions import gcd
from functools import reduce

def lcm_base(a, b):
  return (a * b) // gcd(a, b)

def lcm_list(numbers):
  return reduce(lcm_base, numbers, 1)

lcm = lcm_list(A)



numerator = lcm


denominator = 0
for i in range(N):
  denominator += lcm // A[i]

ans = numerator / denominator
print(ans)

Solution (Python):
n = int(input())
a = list(map(int,input().split()))
x = 0
for i in a:
    x += 1/i
print(1/x)

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()
A = LIST()

s = 0
for i in range(N):
	s += 1/A[i]

print(1/s)