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())
data = [int(i) for i in input().split()]
ans = 0

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

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


sum=0

for i in A_list:
    sum += ( 1/i)
    
print(1/sum)

Solution (Python):

N = int(input())
k = list(map(int,input().split()))
sum = 0
for i in range(N):
    sum += 1/k[i]
print(1/sum)

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


p = 1
for a in A_list :
    p *= a

bunbo = 0
for a in A_list :
    bunbo += p/(1.0*a)

print(p/bunbo)

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())

print(str(1 / sum(1 / int(i) for i in input().split(' '))))

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

sum = 0

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

Solution (Python):

N = int(input())



S = input().split(" ")
SUM = 0
for i in range(N):
    temp = int(S[i])
    temtem = 1 / temp
    SUM += temtem
Ans = 1 / SUM
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())
res = [1/int(x) for x in input().split()]
print(1/sum(res))

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

reverse_result = 0
for i in A:
    reverse_result += 1/i

print(1/reverse_result)

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())
As = list(map(int,input().split()))
mid_return = 0
for i in range(N):
    mid_return += 1 / As[i]
print(1/mid_return)

Solution (Python):
n = int(input())
ls = [int(i) for i in input().split()]
total = 0
for i in range(n):
    total += 1 / ls[i]
print(1/total)

Solution (Python):


def main():
    import sys
    input = sys.stdin.readline
    n = int(input())
    a = list(map(int, input().split()))
    print(1.0/sum(list(map(lambda x: 1.0 / x, a))))

if __name__ == '__main__':
    main()

Solution (Python):

import sys
input = sys.stdin.readline
def main():
    n = int(input())
    a = list(map(int, input().split()))
    print(1.0/sum(list(map(lambda x: 1.0 / x, a))))

if __name__ == '__main__':
    main()

Solution (Python):
import sys
input = sys.stdin.readline
n = int(input())
a = list(map(int, input().split()))
print(1.0/sum(list(map(lambda x: 1.0 / x, 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):
n = int(input())

a = [int(i) for i in input().split()]
print(1.0/sum(list(map(lambda x: 1.0 / x, a))))

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

Solution (Python):
N = int(input())
A = list(map(int, input().split(" ")))
prod, mother = 1, 0
for i, v in enumerate(A):
    prod *= v

for i, v in enumerate(A):
    mother += (prod // v)

print(prod/mother)

Solution (Python):
from decimal import Decimal
n = int(input())
a = [Decimal(c) for c in input().split()]
print(1/sum(1/a_i for a_i in a))

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

Solution (Python):
import itertools
import operator
N = int(input())
A = [int(_) for _ in input().split()]
P = list(itertools.accumulate(A, func=operator.mul))[-1]
print(P / sum(P // a for a in A))

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

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

print(1/bunbo)

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()))

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

Solution (Python):
from functools import reduce

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

P = reduce(lambda a,b:a*b,As)

print(P/sum([P/a for a in As]))

Solution (Python):
n=int(input())
a=map(int,input().split())
print('{:.12g}'.format(1/sum(1/x for x in a)))

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

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
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()))
under = 0
for a in A:
    under += 1/a
print(1 / under)

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

rev_sum = 0
for ll in l:
    rev_sum += 1/ll

ans = 1/rev_sum

print(ans)

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):
import sys

def main():
    input = sys.stdin.readline
    N = int(input())
    A = list(map(int, input().split()))
    
    A_sum = 0
    
    for i, v in enumerate(A):
        A_sum = A_sum + (1 / v)
        
    print(1 / A_sum)
    
        
if __name__ == '__main__':
    main()

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

x = map(int, input().split())

a = 0

for i in x:
  a += 1/i

print(1/a)

Solution (Python):
c=int(input())
n=list(map(int, input().split()))
denominator=0
i=0
while True:
  if i == c:
    break
  denominator += 1/n[i]
  i+=1
print(1/denominator)

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())
aList=list(map(int,input().split()))

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

Solution (Python):
denominator = 0
n = int(input())
a = map(int, input().split())
for value in a:
    denominator += (1/value)
ans = 1 / denominator
print("{: .6f}".format(ans))

Solution (Python):
n = int(input())
lis = map(int, input().split())
 
lis = map(lambda x: 1/x ,lis)

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

Solution (Python):
denominator = 0
n = int(input())
a = map(int, input().split())
for value in a:
    denominator += (1/value)
ans = 1 / denominator
print("{: .6f}".format(ans))

Solution (Python):
n = int(input())
lis = map(int, input().split())
 
lis = map(lambda x: 1/x ,lis)

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

Solution (Python):
import numpy as np
 
N = input()
As = input().split()
list_inp = [int(a) for a in As]

output = np.float(0)
for a in list_inp:
  output += 1/np.float(a)


print(1.0/output)

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

sum = 0

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

ans = 1 / sum

print(ans)

Solution (Python):
def solve():
    num = int(input())
    intTuple = tuple(map(int, input().split()))
    inverts = tuple(map(lambda x: 1 / x, intTuple))
    print(1 / sum(inverts))

solve()

Solution (Python):
a = int(input())
ar = list(map(int,input().split(" ")))
count = 0
for r in ar:
    count += 1 / r
print(1 / count)

Solution (Python):
denominator = 0
n = int(input())
a = map(int, input().split())
for value in a:
	denominator += (1/value)
ans = 1 / denominator
print("{: .6f}".format(ans))

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()
n=int(input())
aa=map(int,input().split())
print(1/sum(1/a for a in aa))

Solution (Python):


import sys


n = int(sys.stdin.readline())
a = [int(x) for x in sys.stdin.readline().strip().split(" ")]

a = sum([1.0 / x for x in a])
a = 1.0 / a

print(a)

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

print(1/ans)

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):
N=int(input())
a=list(map(int,input().split()))
s=0
for i in range(N):
  s+=1/a[i]
ans=1/s
print(ans)

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

Solution (Python):

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

A = list(map(lambda x: 1/x, A))
ans = 1/sum(A)

print(ans)

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

mo = 0
for i in range(len(A)):
    mo = mo + 1/A[i]

print(1/mo)

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


if __name__ == "__main__":
    main()

Solution (Python):
import numpy as np
N = int(input())
num = list(map(float,input().split()))
print(1/sum(np.reciprocal(num)))

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

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

Solution (Python):
input()
c = 1.0 / sum([1.0 / x for x in map(int, input().split(" "))])
print("%.7f" % c)

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

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

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


total=0
for a in al :
  f=float(a)
  total+=1.0/f
  
ans=1.0/total
print('{:.7f}'.format(ans))

Solution (Python):
import numpy as np
input()
A = np.array(input().split(), dtype=int)
print(1/(1/A).sum())

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())

S = list(map(int,input().split()))
num_list = []

for num in S:
    num_list.append(1/num)

total_sum = sum(num_list)


print(1/total_sum)

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

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

a = [1/i for i in a]

print(1/sum(a))

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

Solution (Python):

import bisect
import collections
import itertools


def getint(): return int(input())
def getints(): return list(map(int, input().split()))
def getint2d(rows): return [getints() for _ in range(rows)]
def getgrid(rows): return [input() for _ in range(rows)]
def array1d(n, value): return [value for _ in range(n)]
def array2d(n, m, value): return [array1d(m, value) for _ in range(n)]

n = getint()
values = getints()

res = 0.0
for v in values:
    res += 1.0 / v

print(1.0 / res)

Solution (Python):
n = int(input())
a = [ int(_) for _ in input().split() ]

x = 0

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

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

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

Solution (Python):
N = int(input())
S = list(map(int,input().split(" ")))
num_list=[]
for num in S:
  num_list.append(1/num)
total_num = sum(num_list)
last_num = 1/total_num

print(last_num)

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

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

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

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

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

Solution (Python):


def main():
    n = int(input())
    num = makeNumList(input())
    ans = 0.0
    
    for i in range(n):
        ans += invNum(num[i])
    
    print(invNum(ans))

def invNum(n):
    return 1 / n

def makeNumList(raw):
    num = []
    raw = raw.split(" ")
    for i in range(len(raw)):
        num.append(int(raw[i]))
    return num

main()

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

for i in A:
  a = 1/i
  
  sum += a

print(1/sum)

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

frac = 0

for i in N : 
    frac += 1/i
    
print(1/frac)

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

Solution (Python):
N = int(input())
a = [1.0/float(x) for x in input().split()]
print(1.0/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())
a_lst = [1/int(elem) for elem in input().split()]

print(1/sum(a_lst))

Solution (Python):
import numpy as np

def main():
    inputs = [input() for _ in range(2)]
    numbers = np.array([float(i) for i in inputs[1].split(' ')])
    numbers = np.reciprocal(numbers)
    answer = 1 / sum(numbers)
    print(answer)

if __name__ == '__main__':
    main()

Solution (Python):
N = int(input())
nums = list(map(int, input().split()))
mul_r = 1
for num in nums:
  mul_r *= num
ans = []
for num in nums:
  ans.append(mul_r//num)
print(mul_r/sum(ans))

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

ans = 0

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

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

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

result=0

for i in A:
    result+=1/i

print(1/result)

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

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

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

print(1/sum(list(map(lambda x: 1/x, d))))

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

den = 0

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

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

den=0
for i in range(n):
	temp=1
	for j in range(n):
		if(j!=i):
			temp*=arr[j]
	den+=temp
print(num/den)

Solution (Python):
def solve(string):
    n, *a = map(int, string.split())
    return str(1 / sum(1 / _a for _a in a))


if __name__ == '__main__':
    print(solve('\n'.join([input(), input()])))

Solution (Python):
import numpy as np

N = int(input())
An_list = input().split()

An = np.array(An_list, dtype = "float" )
result = 1 / np.sum(np.reciprocal(An))
print(result)

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

sum = 0.0
for i in num:
  sum += 1/i
  
print(1/sum)

Solution (Python):
n = int(input())
ans = 0
for i in map(int,input().split()):
  ans += 1/i
print('{:.6f}'.format(1/ans))

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):

ii = lambda : int(input())
mi = lambda : map(int,input().split())
li = lambda : list(map(int,input().split()))


def main():
    n = ii()
    a = li()
    bunshi = 1
    bunbo = 0
    for i in a:
        bunshi *= i
    for i in a:
        bunbo += bunshi / i
    
    print(bunshi/bunbo)


main()

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):
def resistors():
    N = int(input())
    b = map(int, input().split())
    result = 0

    for i in b:
        result = result + (1 / i)

    print(1/result)
    
resistors()

Solution (Python):
N = 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())

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

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

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

Solution (Python):
from fractions import Fraction as F

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

value = F(1, sum(F(1, a) for a in A))
print(float(value))

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

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

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

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

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

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=tuple(map(int,input().split()))

div = (1/A[i] for i in range(N) )

ans = 1/sum(div)

print(ans)

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

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

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

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

cnt = 0
for a in As:
  cnt += 1/a
  
print(1/cnt)

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

p = 1
for a in A:
    p *= a

n = p
d = sum([p // a for a in A])

ans = n / d
print(ans)

Solution (Python):
n = int(input())
a = input().split(' ')
for i in range(n):
  a[i] = int(a[i])
  
res = 0.0
for i in range(n):
  res += 1 / a[i]

print(1 / res)

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

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

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

Solution (Python):
def calc(N, A):
    return 1 / sum([1 / a for a in A])


N = int(input())
A = [int(s) for s in input().split(' ')]
print(calc(N, A))

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

output = 1/out

print(output)

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()))

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

Solution (Python):
import sys
from collections import deque

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    N = int(inputs[0])
    A = string_to_int(inputs[1])
    sum_under = 0
    for i in A:
        sum_under += 1/i
    return 1/sum_under


def string_to_int(string):
    return list(map(int, string.split()))


if __name__ == "__main__":
    ret = solve(inputs(2))
    print(ret)

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

Solution (Python):
input_a = int(input())
input_list = list(map(int, input().split()))
sum_a = 0
for i in range(input_a):
    sum_a += 1 / input_list[i]
sum_b = 1 / sum_a
print(sum_b)

Solution (Python):
N = int(input())
A = map(int,input().split())
x =0
for a in A:
  x+=1/a
x=1/x
print("{}".format(x))

Solution (Python):
n = int(input())
a = [int(ai) for ai in input().split()]

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

print(1/x)

Solution (Python):
N = int(input())
A = map(int, input().split())
def divide(num):
    return 1 / num
recip = map(divide, A)
print(1 / sum(recip))

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

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

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

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

sum_mom = 0

for i in A:
    sum_mom += 1 / i

ans = 1 / sum_mom
print(ans)

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

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

mult=1
num=0


for i in range(n):
    mult*=s[i]
    
for j in range(n):
    num+=mult/s[j]
    
print(mult/num)

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

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

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

ans = 0.0

for x in a:
    ans += 1.0 / x

print(1.0 / ans)

Solution (Python):
from operator import mul
from functools import reduce


N = int(input())
if N == 1:
    ans = int(input())
    print(ans)
    exit()
lst_A = list(map(int, input().split()))


upper = reduce(mul, lst_A)
lower = 0
for i in range(N):
    lst_tmp = lst_A[:i] + lst_A[i+1::]
    lower += reduce(mul, lst_tmp)
ans = upper / lower
print(ans)

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

Solution (Python):
N = int(input())
mylist = list(input().split())

myans = 0

for i in range(N):
    myans += 1/int(mylist[i])
print(1/myans)

Solution (Python):


n=int(raw_input())
a=map(int,raw_input().split())
s=0.0
for i in xrange(n):
 s+=1.0/a[i]
print 1.0/s

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

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

Solution (Python):
n = input()
ints = input().split()
sep = float(0.0)
for i in ints:
    sep += (1/int(i))
print(1/sep)

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

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 = map(int, input().split())
print(1/sum([1/i for i in a]))

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

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

d=1
m=0
for i in a:
  d *= i
for i in a:
  m += d/i

ans = d/m

print(ans)

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

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

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

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

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

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

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

aiueo = [int(i) for i in input().split()]

res = 0
for i in aiueo:
    res += 1/i

print(1/res)

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

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

a_sum = 0
for i in a:
	a_sum+= 1/i
print("%f" % (1/a_sum))

Solution (Python):
import sys
length = int(input())
sum = 0.0
input_str = input().split(" ")
for  i in range(0, length):
  sum += (1/(int(input_str[i])));

sum = (1/sum)
print(sum);

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

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

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

Ainv = [1/x for x in A]
print(1/sum(Ainv))

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

Solution (Python):
n=int(input())
arr=list(map(int,input().split()))
sums=0
for val in arr:
  sums+=1.0/val
print(1.0/sums)

Solution (Python):
n=int(input())
i=1
a=list(map(int,input().split()))
A=[0]

while i<=n:
    A.append(1/a[i-1])
    A[0]+=A[i]
    i+=1

print(1/A[0])

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

answer = 0

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

print(answer)

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

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

Solution (Python):

n = int(input())

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

sum = 0
for el in lst:
    sum += 1/el

print(1/sum)

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

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

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

Solution (Python):
from decimal import Decimal


N = int(input())


A = map(Decimal, input().split())

under_sum = Decimal(0)

for a in A:
    under_sum += Decimal(1) / Decimal(a)


print(Decimal(1)/under_sum)

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

Solution (Python):
import numpy as np

a = int(input())
b = np.array([int(i) for i in input().split()])
c = 1 / np.sum(1 / b)
print(c)

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

a = input().split()

sum_a_rev = 0

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

res = 1/sum_a_rev

print("{}".format(res))

Solution (Python):
lens = int(input())
arrs = sum([1/int(x) for x in input().split()])
if arrs != 0:
  print(1/arrs)

Solution (Python):
n = int(input())
lst = list(map(int, input().split()))
sum = 0

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

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

Solution (Python):
def main():
    n = int(input())
    arr = list(map(int,input().split()))

    ans = 0
    total = 1
    for i in arr:
        total *= i

    for i in arr:
        ans += total//i

    ans = total/ans

    print(ans)
    

main()

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

p=1
for i in range(len(a)):
    p*=a[i]

s=0
for i in range(len(a)):
    s+=p/a[i]

print(p/s)

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

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):
input()
A=list(map(int,input().strip().split(' ')))
print(1/sum([1/a for a in A]))

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

denominator = 0

for x in a:
    denominator += (1 / x)

print(1 / denominator)

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

d = 0.

for x in A:
    d += 1 / x

print(1/d)

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

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

d = 0
for i in input().split(" "):
  d += 1.0 / float(i)
  
print(1/d)

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

print(1/bo)

Solution (Python):
from scipy.stats import hmean
n = int(input())
xs = [int(c) for c in input().split()]
print(hmean(xs) / n)

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

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

for num in nums:
  ans += 1/num
print(1/ans)

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

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

ans = 1 / a

print(ans)

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):
_,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()))
print(1/sum([1/a for a in A]))

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

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):
n = int(input())
a = list(map(int,input().split()))

ans = 0
for i in a:
    ans += 1/i
ans = 1 / ans
print(round(ans,6))

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

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

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

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

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

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

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

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

rev = 0
for a in As:
    rev += 1/a
print(1/rev)

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

af = 0
for i in A:
    af += (1/i)

print(1/af)

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

A=[int(x) for x in input().split()]

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

print(1/sum(A))

Solution (Python):
def main():
    n = int(input())
    A = list(map(int, input().split()))
    B = 0
    for i in range(n):
        C = 1 / A[i]
        B += C
    print(1 / B)

if __name__ == "__main__":
    main()

Solution (Python):
from fractions import Fraction
n = int(input())
a = sorted(list(map(int, input().split())),reverse=True)
b = [1,]
for i in range(1, n):
    c = Fraction(a[0], a[i])
    b.append(c)
print(float(a[0]/sum(b)))