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())
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 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 += 1/a[i]
  
print(1/ans)

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

print(1/ans)

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

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

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 a in A:
    if a == 0:
        continue
    ans += 1 / a
if ans == 0:
    print(0)
else:
    print(1 / ans)

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 += 1/A[i]
print(1/ans)

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

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

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

print(float(1/sum))

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


B = 0

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

print(1 / B)

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

print(float(1/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())
A = list(map(int, input().split()))

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

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

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(map(int, 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()))
print(1/sum(1/a for a in A))

Solution (Python):



a=int(input())





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

bunbo=0
for i in range(len(f)):
    bunbo+=1/f[i]
print(1/bunbo)

Solution (Python):
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 6)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")
al = "abcdefghijklmnopqrstuvwxyz"
AL = al.upper()

N = k()
A = l()
for i in A:
    ans += 1/i
 
ans = 1/ans
print(ans)

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

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

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

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

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

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

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

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

for x in a :
  b.append(1/x)
  
c = sum(b)
ans = 1/c
print(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):
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(map(int, input().split()))
check = 0
from decimal import Decimal
for i in range(N):
  check += Decimal(1/A[i])
ans = Decimal(1/check)
print(ans)

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

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

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

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

s = list(map(int, input().split()))
t = []
v = 0

for i in range(n):
  c = 1/s[i]
  t.append(c)
  
for j in range(n):
  v += t[j]
  
ans = 1/v

print(ans)

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

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

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

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

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

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

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

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

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):
import numpy as np
n=int(input())
l= [np.array(input().split() ,dtype=np.int64)]

l2=[]
for i in range(len(l)):
    l2.append(1/(l[i]))
    sum1=np.sum(l2) 
    ans=1/(sum1)
print(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()))
b = 0
for i in a:
    b += 1 / i
print(1 / b)

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

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

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

Solution (Python):


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

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

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

nom = 1
denom = A[0]

for i in range(1, N):
    nom = nom * A[i] + denom
    denom = denom * A[i]

print(denom / nom)

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

solve()

Solution (Python):
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")



n = int(input())
a = list(map(int, input().split()))
ans = 1/sum((1/num) for num in a)
print(ans)

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

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

Solution (Python):
N=int(input())
d=[int(s) for s in input().split()]
x=1
for i in range(N):
    x=x*d[i]
y=0
for i in range(N):
    y+=int(x/d[i])
print(x/y)

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

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


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

    s = 0

    for x in A:
        s += 1 / x

    print(1 / s)


if __name__ == '__main__':
    main()

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

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()))
s=0
for i in range(n):
  s+=1/A[i]
print(1/s)

Solution (Python):
n=int(input())
l=list(map(int,input().split()))
s=0
for i in range(len(l)):
  s+=1/l[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):


num = int(input())
total = 0
str = input().split()
table = list(str)
for i in range(num):
    total += 1 / int(table[i])

total = 1 / total
print(total)

Solution (Python):
from sys import stdin

n = int(stdin.readline().rstrip())
A = [int(a) for a in stdin.readline().rstrip().split()]

A = [float(a) for a in A]

total = 0.

for a in A:
    total += 1/a

print(1/total)

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

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

a_list=[1/int(i) for i in input().split()]
ans=1/sum(a_list)

print(ans)

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

for i in lis:
  x = 1 / i
  total += x

print(1 / total)

Solution (Python):
import numpy as np
N,*A=map(int,open(0).read().split())
print(1/np.sum(1/np.array(A)))

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):
n=int(input())
a=[int(x) for x in 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()))
targ = 0
for j in a:
	targ += 1/j
print(1/targ)

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


print(1 / sum(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()))
p = 1
n = A[0]
for i in range(1, N):
  p = n + p * A[i]
  n = n * A[i]
print(n / p)

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

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

Solution (Python):
def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def aaa(num):
    return 1/num

def main():
    n = int(input())
    a = Input()
    ans = 1 / sum(aaa(i) for i in a)
    print(ans)
main()

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()))
ans = 0
for i in range(n):
    ans += 1/a[i]
print(1/ans)

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

N = int(input())
As = list(mapint())
print(1/sum([1/a for a in As]))

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

Solution (Python):


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

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

print(res)

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

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

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

Solution (Python):
n = int(input())
a = list(map(float,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()))
deno = 1
nume = 0.0
         
for i in range(n):
         deno *= a[i]
for j in range(n):
         nume_frac = deno / a[j]
         nume = nume + nume_frac
         
print((deno / nume))

Solution (Python):


import math
n = int(input())
A = list(map(int, input().split()))
y = 0
for i in A:
    y += 1000/i
x = 1/y*1000
print(x)

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

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

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

ll=[1/x for x in l]

print(1/sum(ll))

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

reversed = [1/i for i in num_list]
sum_under = 0
for j in reversed:
    sum_under += j

ans = 1/sum_under

print(ans)

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

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

ans=0

for i in range(N):
    ans+=1/arr[i]

print(1/ans)

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

amul=1
for i in range(n):
    amul *= A[i]
asum=0
for i in range(n):
    asum += amul//A[i]

ans = amul / asum
print(ans)

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()))
ans = 0
for i in range(n):
    ans += pow(a[i], -1)
print(pow(ans, -1))

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

bunbo=0

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

print(1/bunbo)

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

denominator = 0

for a in A:
    denominator += 1/a

answer = 1/denominator

print(answer)

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

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

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

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

print(1/B)

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

mul = 1
for i in A:
    mul *= i 

m = 0
for i in range(N):
    m += mul // A[i]

print(mul / m)

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):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
N = I()
A = LI()
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()))

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

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

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

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

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

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

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

K = A/B
print(K)

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

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

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

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

num = 0
for i in range(N):
    mulAll //= A[i]
    num += mulAll
    mulAll *= A[i]

ans = mulAll / num

print(ans)

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

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_suseki = 1
a_nukewa = 0

for i in range(n):
  a_suseki = a_suseki * a[i]

for i in range(n):
  a_nukewa = a_nukewa + (a_suseki/a[i])

print(a_suseki / a_nukewa)

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+=(1/a[i])
print(1/ans)

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

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 += 1 / A[i]
print(1 / ans)

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

import math
def lcm(x, y):
    return (x*y)//math.gcd(x, y)
if n >=2:
    ue = lcm(a[0], a[1])
    if n >= 3:
        for i in range(2, n):
            ue = lcm(ue, a[i])
else:
    ue = a[0]

shita = 0
if n >=2:
    for i in range(len(a)):
        shita += ue//a[i]
else:
    shita = n

ans = ue / shita
print(f"{ans:.6f}")

Solution (Python):
def gyaku(x):
    return 1/x

n=int(input())
a=list(map(int,input().split()))
for i in range(n):
    a[i]=gyaku(a[i])

x=sum(a)
print(gyaku(x))

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

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

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

import math
def lcm(x, y):
    return (x*y)//math.gcd(x, y)
if n >=2:
    ue = lcm(a[0], a[1])
    if n >= 3:
        for i in range(2, n):
            ue = lcm(ue, a[i])
else:
    ue = a[0]

shita = 0
if n >=2:
    for i in range(len(a)):
        shita += ue//a[i]
else:
    shita = n

ans = ue / shita
print(f"{ans:.6f}")

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

s = 0

for x in a:
    s += 1 / x

print(1/s)

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

Solution (Python):
N = int(input())
A_ls = map(int, input().split(' '))
result = 0
for A in A_ls:
    result += 1 / A
print(1/result)

Solution (Python):
n=int(input())
a=list(map(int,input().split()))
a.sort()
count=1
ans=0
ans=a[len(a)-1]*count
count+=1
for i in a:
    if ans%i!=0:
        break
ans2=0
for i in a :
    ans2+=ans/i
    
print (ans/ans2)

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

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 solve():
    n = int(input())
    s = list(map(int, input().split()))
    res = 0
    for ss in s:
        res += 1 / ss
    print(1/res)


solve()

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

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()))
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()))
print(1/sum(1/x for x in a))

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

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

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

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

Solution (Python):

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

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

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

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

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

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

Solution (Python):







n = int(input())

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

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

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

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

print(1/sum(b))

Solution (Python):


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

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

Solution (Python):
from fractions import Fraction

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

ref = 0
for i in range(N):
    ref += Fraction(1, A[i])

ans = Fraction(1, ref)
ans = float(ans)
print(ans)

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

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

main()

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

Solution (Python):
N = int(input().rstrip())
A = list(map(int,input().rstrip().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 i in range(n):
  sum=sum+1/a[i]
print(1/sum)

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

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

print(1 / sum_bunbo)

Solution (Python):
import decimal

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

rev = [decimal.Decimal(float(1/i)) for i in A]
print(decimal.Decimal(1/sum(rev)))

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

Solution (Python):























































global FLAG_LOG
FLAG_LOG = False


def log(value):
    
    
    if FLAG_LOG:
        print(str(value))


def calculation(lines):
    
    N = int(lines[0])
    
    values = list(map(int, lines[1].split()))
    
    
    
    
    
    
    

    su = 0

    for n in range(N):
        su += 1/values[n]

    return [1/su]



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['2', '10 30']
        lines_export = [7.5]
    if pattern == 2:
        lines_input = ['3', '200 200 200']
        lines_export = [66.66666666666667]
    if pattern == 3:
        lines_input = ['1', '1000']
        lines_export = [1000]
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    global FLAG_LOG
    if len(args) == 1:
        mode = 0
        FLAG_LOG = False
    else:
        mode = int(args[1])
        FLAG_LOG = True
    return mode



def main():
    import time
    started = time.time()
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(2)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    
    
    
    



if __name__ == '__main__':
    main()

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

for i in range(n):
    list.append(1/a[i])
    
print(1/ sum(list))

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

sum = 0

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

ans = 1 / sum

print(ans)

Solution (Python):
import numpy as np
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()))
sum=0
for i in range(n):
  sum+=1/a[i]
print(1/sum)

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

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

a_re = [1/x for x in a]
su_a = sum(a_re)
print(1/su_a)

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

resolve()

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

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):
import numpy as np


n=int(input())
B = 1/np.array(list(map(int,input().split())))

print(1/np.sum(B))

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

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

tmp = 0
ans = 0

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

ans = 1/tmp

print(ans)

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

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

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

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

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

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()))
ans = 0.
for i in range(n):
    ans += 1 / a[i]
print(1 / ans)

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

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

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

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

ただの倍数 = 1
for i in set(a):
    ただの倍数 *= i
ans = ただの倍数 / sum(ただの倍数 // i for i in a)
print([ans, int(ans)][ans % 1 == 0])

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

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

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

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()))
b = 0
for i in range(n):
    b += 1/a[i]
print(1/b)

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


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


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

    print(1/sum(A))


if __name__ == "__main__":
    main()

Solution (Python):
import sys
N = int(input())
array = list(map(int,input().split()))

if not ( 1 <= N <= 100 ): sys.exit()
if (min(array) < 1) or (max(array) > 1000) : sys.exit()

sum = 0
for J in array:
    sum += 1/J

print(1/sum)

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

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

print(1/out)

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

print(1/(sum(A)))

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