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

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

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

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

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

Solution (Python):
n = int(input())
a = tuple(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()))
ans_inv = 0
for a in A:
  ans_inv += 1/a
  
print(1/ans_inv)

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

for n in range(N):
    denominator += 1/arr[n]

print(1/denominator)

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

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

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


print(1/seq)

Solution (Python):
N = int(input())
a = list()
for elem in input().split(' '):
    a.append(int(elem))

sum = 0;
for number in a:
    sum+=1/number

print(1/sum)

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

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

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

print(1/num)

Solution (Python):
N = int(input())
Alist = list(map(int,input().split()))
Sum = 0

for A in Alist:
	Sum = Sum + 1 / A

print(1/Sum)

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

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

Solution (Python):
n = int(input())
li = [int(num) for num in input().split()]

sum = 0
for i in range(n):
    sum += 1/li[i]


print(1/sum)

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

Solution (Python):
N = int(input())
a=list(input().split())
A=[int(i) for i in a]
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()))
l = []
 
for i in a:
  l.append(1/i)
  
print(1/sum(l))

Solution (Python):
def _input():
    number = input()
    array = input().split()
    number_array = []
    for i in array:
        number_array.append(int(i))
    return number_array

def sum(array):
    total = 0
    for i in array:
        total += (1 / i)
    return total

def output(number):
    return (1 / number)


if __name__ == "__main__":
    number_array = _input()
    total = sum(number_array)
    print(output(total))

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())
y = 0
x = [int(i) for i in input().split()]
for i in range(n):
    y += 1/(x[i])
print(1/y)

Solution (Python):
import numpy as np
N = input()
A = input().split()
A = np.array(A).astype(int)
res = 0.0
for a in A:
    res += 1/a
print(1./res)

Solution (Python):

from fractions import Fraction

def inverse(f):
    d = f.denominator / f.numerator
    return d

a = int(input())
b = list(map(int,input().split()))
c = 0

for i in range(a):
    c = c + Fraction(1, b[i])

print(inverse(c))

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 = [ 1.0 / int(a) for a in input().split() ]

print(1.0 / sum(A))

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

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):
S = int(input())
A = [int(i) for i in input().split()]
v = 0
for i in A:
  v += 1 / i
  
ans = 1 / v
print(ans)

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

    ans = 0

    for i in a:
        ans += 1/i

    print(1/ans)

if __name__ == "__main__":
    main()

Solution (Python):
def main():
  N = input()
  arr = list(map(int,input().split()))
  sum = 0.0
  for i in range(len(arr)):
    sum += 1 / arr[i]
  
  print(1/sum)
  
main()

Solution (Python):
N = int(input())
A = map(int, input().split())
print('{:.16g}'.format(1 / sum(1 / x for x 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):
n=int(input())
a=list(map(int,input().split()))
bunshi=1
for i in range(n):
  bunshi*=a[i]
bunbo=0
for i in range(n):
  bunbo+=bunshi//a[i]
print(float(bunshi)/float(bunbo))

Solution (Python):
if __name__ == '__main__':
    N = int(input())
    A = list(map(int, input().split()))
    rec = sum([1 / x for x in A])
    print(1 / rec)

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

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

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

Solution (Python):
N = int(input())
List = [] * N
List = input().split(" ")
Sum = 0
for i in range(N):
  Sum += 1/(int(List[i]))
print(1/Sum)

Solution (Python):


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

rtn = 0.0

for i in int_list:
  rtn += 1/i

rtn = 1/ rtn

print(rtn)

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

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

ans = 0
for data in li:
	
	ans += 1 / data	

print(round(1/ans, 15))

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

hoge = arr.split(" ")

mother = 0
for i in hoge:
  mother = mother + 1 / int(i) 

print(1/mother)

Solution (Python):
import numpy as np

N = int(input())
Ai = np.array(list(map(int,input().split())))

print(1/((1/Ai).sum()))

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

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

Solution (Python):
max = int(input())
li = list(map(int,input().split()))
l = []
for num in li:
    l.append(1.0/num)
print(1.0/sum(l))

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

temp = 0

for i in map(int, input().split()):
  temp += 1 / i
  
print(1 / temp)

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

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

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

Solution (Python):
n = int(input())
a_arr = list(map(int,input().split()))
a_sum = 1
for i in a_arr:
    a_sum *= i

ans_u = 0
for i in a_arr:
    ans_u += a_sum//i

print(a_sum/ans_u)

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

product = 1
for number in numbers:
    product *= number

bumbo = 0
for number in numbers:
    bumbo += product // number

print(product/bumbo)

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

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

ans = 1 / ans

print(ans)

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    n = int(input().rstrip('\n'))
    a = list(map(int, input().rstrip('\n').split()))
    t = 0
    for i in a:
        t += (1 / i)
    print(1 / t)


if __name__ == '__main__':
    slove()

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

Solution (Python):
from functools import reduce

n = int(input())
a = [float(i) for i in input().split(' ')]
a = [1/i for i in a]
print(1 / reduce(lambda x, y : x + y, a))

Solution (Python):
N = int(input())
A = [float(i) for i in 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()))
a=0
for i in range(N):
    a=a+1/A[i]
print(1/a)

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

sum = 0

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

print(1/sum)

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

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

su = 0

for s in s_l:
    su += 1/s

print(1/su)

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

Solution (Python):
N=int(input())
A=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()))
k = []
for i in range(n):
    k.append(1/a[i])
print(1/sum(k))

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 = input().split()
Reciprocal_A_list = [1/int(A_list[i]) for i in range(N)]
print(1/sum(Reciprocal_A_list))

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

total_mul = 1.0
for i in listA:
  total_mul *= i

bunbo = 0.0
for i in listA:
  bunbo += total_mul / i

print(total_mul / bunbo)

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

plist = [1/m for m in alist]
print(1 / sum(plist))

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

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

print(1/ans_r)

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

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

tmp1 = 1
tmp2 = 0

for i in range(N):
    tmp1 = tmp1 * num_list[i]

for i in range(N):
    tmp2 += tmp1 / num_list[i]

print(tmp1/tmp2)

Solution (Python):
n = int(input())
an = [int(elm) for elm in input().split()]

sum_an = 0

for a in an:
    sum_an += 1/a

print(1/sum_an)

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

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

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

c=1
for y in A:
    c=c*y 
d=0
for y in A:
    d=d+(c/y)
q=c/d
print(q)

Solution (Python):
num=int(input())
S=input().split(" ")
ans=float(0)
for i in range(num):
	ans+=1/int(S[i])
print(1/ans)

Solution (Python):
n = int(input())
a_n = input().split(" ")
rev = float(0)
for i in range(n):
  rev += 1/int(a_n[i])
print(1/rev)

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

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

result = (1 / sum(1 / i for i in numList))
print(result)

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

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

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):
_ = input()
a_list = list(map(int, input().split()))
bunshi = 1
for a in a_list:
    bunshi *= a
bunbo = sum(map(lambda x: bunshi / x, a_list))
print(bunshi/bunbo)

Solution (Python):

n = int(input())

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

B = []
C = 0

for k in range(n):
    B.append(1/A[k])

for l in range(n):
    C = B[l] + C
    
print(1/C)

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):
N = input()
print(1 / sum(map(lambda x: 1 / int(x), input().split())))

Solution (Python):
n=int(input())
numlist=input()
nums=numlist.split(" ")
nums=[float(s) for s in nums]
inverse=0.0
for i in range(len(nums)):
    inverse+=1/nums[i]
print(1/inverse)

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(float,input().split()))
tmp = 0
for i in range(N):
  tmp = tmp + (1/A[i])
tmp= 1/tmp
print(tmp)

Solution (Python):
N = int(input())
input_str = input()
array_strs = input_str.split(" ")
sum_recip = 0.0

for i in range(N):
    sum_recip += 1 / float(array_strs[i])

print(1 / sum_recip)

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

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

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

ans = 0

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

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

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

print(1/s)

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

div = 0

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

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

b = 1 / sum(map(lambda x:x / x ** 2,a))

print(b)

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


A = input()

A = A.split(' ')
a = [1/int(i) for i in A]
b = 0
for i in a:
    b += i
    
print(1/b)

Solution (Python):

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

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

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

tmp = float()

for i in l:
  tmp += float(1/i)

print(1/tmp)

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

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

Solution (Python):
import math
N = int(input())
nums = list(map(int,input().split(" ")))

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

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

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

if __name__ == '__main__':
    main()

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

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

print(1/sum(1/x for x in A))

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

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

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

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

Solution (Python):


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

rev = [1/i for i in n]
rev = 1/sum(rev)
print(rev)

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

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

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

down = 0
for i in range(N):
    buf=1
    for j in range(N):
        if i==j: continue
        buf*=A[j]
    down+=buf
print(up/down)

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

Solution (Python):
N = int(input())
A = [int(x) for x in input().split()]
print('{:.16g}'.format(1/sum(1/x for x in A)))

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

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

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

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

import numpy as np
A = np.array([A])
print(1/np.sum(1/A))

Solution (Python):


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

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 = tuple(map(int, input().split()))
sum_a = 0
for i in a:
    sum_a += 1 / i
print(1 / sum_a)

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


def main():
    _ = int(input())
    A = list(map(int, input().split()))
    s = 0
    for a in A:
        s += 1/a
    print(1/s)

if __name__ == '__main__':
    main()

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

Solution (Python):
max = int(input())
num = list(map(int, input().split(" ")))

i = 0
tmp = 0
while i < max:
    tmp = 1/(num[i]) + tmp
    i = i + 1
    
ans = 1/tmp
print(ans)

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

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

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

ans = 0.0
for n in A:
    ans += float(1)/n

print(float(1)/ans)

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

Solution (Python):
def main():
    import sys
    input = sys.stdin.readline
    n = int(input().rstrip('\n'))
    a = list(map(int, input().rstrip('\n').split()))
    t = 0
    for i in a:
        t += (1 / i)
    print(1 / t)


if __name__ == '__main__':
    main()

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

ans = 1/ans
print(ans)

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

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()))
ans = 0
for i in A:
  ans += 1 / i
print(1/ans)

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

Solution (Python):
a = int(input())
int_list = input().split()
tmp = 0.0
for i in int_list:
    tmp += 1/int(i)
    
print( 1 / tmp )

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

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

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

t = 0

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

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

print(1/total)

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

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

Solution (Python):
N=int(input())
a=0.0
for i in input().split():
  a+=1.0/float(i)
print(1.0/a)

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

denomina = 0
for s in ss:
    denomina += 1/s

print(1/denomina)

Solution (Python):
def resistors_in_parallel(N: int, A: list)->float:
    return 1.0 / sum(1.0/a for a in A)


if __name__ == "__main__":
    N = int(input())
    A = list(map(int, input().split()))

    ans = resistors_in_parallel(N, A)
    print(ans)

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

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

Solution (Python):
import sys,math,itertools,bisect,copy,re

from collections import Counter, deque, defaultdict
from itertools import accumulate, permutations, combinations, takewhile, compress, cycle
from functools import reduce
from math import ceil, floor, log10, log2, factorial
from pprint import pprint

input = sys.stdin.readline

INF = float('inf')
MOD = 10**9+7
EPS = 10**-7
sys.setrecursionlimit(1000000)








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

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

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

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=[int(s) for s in input().split()]

total=0
for a in a_list:
    total+=1/a

print(1/total)

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 = [int(i) for i in input().split()]
b = 0.0
c = 0.0
for i in a_list:
  c = 1/i
  b += c
result = 1/b
print(result)

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

A_inverse = [1/i for i in A]
print(1/sum(A_inverse))

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

product = 1
sum = 0
for num in list:
    product *= num

for num2 in list:
    sum += product / num2
print(product / sum)

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

Solution (Python):
from heapq import heappush, heappop
import re
from collections import deque
import sys
import math
input = sys.stdin.readline


def int_raw():
    return int(input())

def str_in():
    return input().strip("\n")

def ss_raw():
    return input().split()


def ints_raw():
    return tuple(map(int, ss_raw()))


DIV = 10**9+7


def mod_inv_prime(a, mod=DIV):
    return pow(a, mod-2, mod)


def mod_inv(a, b):
    r = a
    w = b
    u = 1
    v = 0
    while w != 0:
        t = r//w
        r -= t*w
        r, w = w, r
        u -= t*v
        u, v = v, u
    return (u % b+b) % b


def ncr(n, r, mod=DIV):
	r = min(r, n-r)
	ret = 1
	for i in range(1, r+1):
		ret = ret * (n-i+1) % mod
		ret = ret * mod_inv(i, mod) % mod
	return ret


class UnionFind:
    def __init__(self, n):
        self.par = [i for i in range(n+1)]
        self.rank = [0] * (n+1)
        self.mini = [i for i in range(n+1)]

    def find(self, x):
        if self.par[x] == x:
            return x
        else:
            self.par[x] = self.find(self.par[x])
            return self.par[x]

    def union(self, x, y):
        x = self.find(x)
        y = self.find(y)
        if self.rank[x] < self.rank[y]:
            self.par[x] = y
        else:
            self.par[y] = x
            if self.rank[x] == self.rank[y]:
                self.rank[x] += 1
        mini = min(self.mini[x],self.mini[y])
        self.mini[x]=mini
        self.mini[y]=mini
    
    def same_check(self, x, y):
        return self.find(x) == self.find(y)

def main():
    n = int_raw()
    As = ints_raw()
    return 1.0/sum([1.0/a for a in As])
    
print(main())

Solution (Python):

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

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

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

Solution (Python):
count = input()
number_list = input().split()
sum = 0

for n in range(int(count)):
  sum += 1 / int(number_list[n])

result = 1 / sum

print(result)

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

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

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

x = []
for i in range(len(A)):
    x.append(1/A[i])
    bunbo = sum(x)
print(1 / bunbo)

Solution (Python):
d = input()
a = input().split()
r = 0
for i in a:
    r += 1 / int(i)
print(1 / r)

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

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

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

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

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

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

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

Solution (Python):
n = int(input())
a_list = input().split()

bumbo = 0
for a in a_list:
    bumbo += 1.0 / int(a)

print(1.0/bumbo)

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

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

b = 0.0

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

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

for a in al:
    sum += 1/a

print(1/sum)

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









all_jousu = 1
for i in range(len(list)):
    all_jousu *= list[i]

josu = 0
for i in range(len(list)):
    josu += all_jousu/list[i]

ans = all_jousu/josu



print(ans)

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

r = 1.0 / sum([1 / a for a in aa])

print(r)

Solution (Python):
import math
import sys
import numpy as np
from collections import defaultdict, deque, Counter 
from itertools import accumulate, product, permutations,combinations, combinations_with_replacement
from operator import itemgetter
from bisect import bisect_left,bisect
from heapq import heappop,heappush
from fractions import gcd

max_value = 1000000000
min_value = -1000000000
sys.setrecursionlimit(max_value)


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


b_list = [1./e for e in a_list]

b = np.sum(b_list)

print(1/b)

Solution (Python):


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

lower = 0
for a in array:
    lower += 1 / a

print("{}".format(1 / lower))

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

Solution (Python):
import math
import numpy as np

















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


print(1/k)

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

out = 0
for i in range(N):
  out += 1.0 / A[i]

  
print(1.0 / out)

Solution (Python):
n = int(input())
a = list(map(int, input().split()))
sum = 0
for i in range(n):
    sum += 1/a[i]
print("{:.6f}".format(1/sum))

Solution (Python):
n = int(input())
values = input().split()
before_reverse_num = 0
for _ in range(n):
  before_reverse_num += 1 / int(values[_])
after_reverse_num = 1 / before_reverse_num
print(str(round(after_reverse_num,5)))

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

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

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

Solution (Python):
from functools import reduce
input()
l=list(map(lambda x: (1 /int(x)), input().split()))
sum = reduce((lambda x, y: x + y), l) 
print (1/sum)

Solution (Python):
import numpy as np

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

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

Solution (Python):
import numpy as np

N = int(input())
A_array = np.array([int(x) for x in input().split()])

a_array = np.sum(1/A_array)
print(1/a_array)

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

Solution (Python):
import numpy as np

n= int(input())
lst = [float(x) for x in input().split()]
print(1 / sum(np.reciprocal(lst)))

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

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