problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02934
u338821626
2,000
1,048,576
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}}.
["N = int(input())\nA = list(map(int, input().split()))\n\nfor i in range(N):\n S += 1 / A[i]\n\nans = 1 / S\nprint('[:.6g]'.format(ans))\n", "N = int(input())\nA = list(map(int, input().split()))\nS =0\nfor i in range(N):\n S += 1 / A[i]\n\nans = 1 / S\nprint('{:.6g}'.format(ans))\n"]
['Runtime Error', 'Accepted']
['s559998845', 's974896579']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 134]
p02934
u340520934
2,000
1,048,576
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}}.
['N = int(input())\nA = list(map(int,input().split(",")))\ntmp = 0\nA.sorted()\nfor i in range(N):\n tmp = tmp + 1/A[i]\n \nprint(1/tmp)', 'N = int(input())\nA = list(map(float,input().split(",")))\ntmp = 0\nfor i in range(N):\n tmp = tmp + 1/A[i]\n \nprint(1/tmp)', 'N = int(input())\nA = list(map(int,input().split...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s189338095', 's455733936', 's981936357', 's045119726']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[129, 120, 118, 125]
p02934
u341267151
2,000
1,048,576
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}}.
['n=int(input())\nA=[map(int,input().split())]\ns=0\nfor i in A:\n s+=1/i\nprint(1/s)', 'n=int(input())\nA=list(map(int,input().split()))\ns=0\nfor i in A:\n s+=1/i\nprint(1/s)\n']
['Runtime Error', 'Accepted']
['s363056663', 's016975489']
[2940.0, 2940.0]
[18.0, 18.0]
[78, 83]
p02934
u341281360
2,000
1,048,576
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}}.
['n = int(input())\nA = list(map(int,input().split()))\n\nA = map(lambda x: 1 / float(x), A)\n\nprint(sum(A))\n', 'n = int(input())\nA = list(map(int,input().split()))\n\nA = map(lambda x: 1 / float(x), A)\nsum_A = sum(A)\nans = 1/sum_A\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s862130142', 's119838875']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 129]
p02934
u349515860
2,000
1,048,576
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}}.
['N = int(input())\nS = 0\nA = list(map(int,input().split()))\nfor i in A:\n S += 1/A[0]\nprint(1/S)', 'N = int(input())\nS = 0\nA = list(map(int,input().split()))\nfor i in range(N):\n S += 1/A[i]\nprint(1/S)']
['Wrong Answer', 'Accepted']
['s980218425', 's610377303']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 101]
p02934
u361826811
2,000
1,048,576
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}}.
['\n\nimport sys\nimport numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nsys.setrecursionlimit(10 ** 7)\n\nN, *A = map(int, read().split())\nAarr = np.array(A)\nprint(Aarr)\nAt = 1 / Aarr\nprint(At)\nprint(1 / sum(At))\n', '\n\nimport sys\nimpor...
['Wrong Answer', 'Accepted']
['s201897694', 's147902390']
[13544.0, 12504.0]
[168.0, 148.0]
[323, 301]
p02934
u364642100
2,000
1,048,576
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}}.
['n = int(input())\na = list(map(int, input().split()))\nrec = 0\nfor i in range (n):\n rec += 1 / a[i]\nprint(n / rec)', 'n = int(input())\na = list(map(int, input().split()))\nrec = 0\nfor i in range (n):\n rec += 1 / a[i]\nprint(1 / rec)\n']
['Wrong Answer', 'Accepted']
['s929251807', 's823753836']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 114]
p02934
u367147039
2,000
1,048,576
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}}.
['n=int(input())\na=[]\nc=0\nfor i in range(n):\n b=int(input())\n c+=1.0/b\nprint(1.0/c)\n\n \n', 'n=int(input())\na=[]\nc=0\nfor i in range(n):\n b=int(input())\n c+=1.0/b\nprint(1.0/c)\n\n \n\n', 'n=int(input())\na=map(int,input().split())\nprint({:.16g}.format(1/sum(1/x for x in a)))\n', 'n=int(...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s270152412', 's368229602', 's854613234', 's925604804']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[95, 96, 87, 88]
p02934
u369073975
2,000
1,048,576
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}}.
['N = int(input())\n\nA = map(int,input().split())\n\nprint(sum 1/x for x in A)', 'N = int(input())\n\nA = map(int,input().split())\n\nprint(1/sum(1/x for x in A))']
['Runtime Error', 'Accepted']
['s800867447', 's179135171']
[2940.0, 2940.0]
[17.0, 18.0]
[73, 76]
p02934
u372102441
2,000
1,048,576
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}}.
['\nN = int(input())\n#s = input()\n#S = []\n\nS = input().split(" ")\nSUM = 0\nfor i in range(N):\n temp = S[i]\n temtem = 1 / temp\n SUM += temtem\nAns = 1 / SUM\nprint(Ans)\n\n', '\nN = int(input())\n#s = input()\n#S = []\n\nS = input().split(" ")\nSUM = 0\nfor i in range(N):\n temp = int(S[i])\n temt...
['Runtime Error', 'Accepted']
['s758241520', 's319495485']
[2940.0, 2940.0]
[17.0, 17.0]
[191, 194]
p02934
u379136995
2,000
1,048,576
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}}.
['n=int(input())\nx=0\ny=1\na=list(map(int,input().split()))\nif n==1:\n print(a[0])\nelse:\n for i in range(0,n):\n x=a[i]+x\n y=a[i]*y\n ans=y/x\n if x==a[0]*n:\n print(a[0]/n)\n else:\n print(ans)\n', 'n=int(input())\nx=0\ny=1\na=list(map(int,input().spl...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s824439737', 's901121101', 's751563500']
[3060.0, 3060.0, 2940.0]
[18.0, 18.0, 18.0]
[247, 265, 119]
p02934
u382192348
2,000
1,048,576
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}}.
['# coding: utf-8\nn = int(input())\n\nA = list(map(int,input().split()))\n\nprint(A)\n\nB = []\nc = 0\nfor k in range(n):\n B.append(1/A[k])\n\nprint(B)\n\nfor l in range(n):\n c = B[l] + c\n \nprint(1/c)', '# coding: utf-8\nn = int(input())\n\nA = list(map(int,input().split()))\n\nB = []\nC = 0\n\nfor k in r...
['Wrong Answer', 'Accepted']
['s298616917', 's116161940']
[3060.0, 3060.0]
[17.0, 18.0]
[195, 176]
p02934
u382639013
2,000
1,048,576
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}}.
['N = int(input())\nA = list(map(int, input().split()))\n\nfrom fractions import Fraction\ndef inverse(f):\n return Fraction(f.denominator,f.numerator)\n\nans = 0\nfor i in A:\n ans = ans + inverse(i)\n\nfloat(inverse(ans))', 'N = int(input())\nA = list(map(int, input().split()))\n\nfrom fractions import Fraction...
['Wrong Answer', 'Accepted']
['s528294147', 's307637678']
[5104.0, 5104.0]
[39.0, 37.0]
[216, 223]
p02934
u385873134
2,000
1,048,576
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}}.
["import sys\nfor l in sys.stdin:\n a.append(l)\n\na_array = a[1].split(' ')\n\nsum = 0\n\nfor i in a_array:\n sum += (1 / int(i))\n\nprint(1 / sum)", "import sys\na = []\nfor l in sys.stdin:\n a.append(l)\n\na_array = a[1].split(' ')\na_array\n\nsum = 0\n\nfor i in a_array:\n sum += (1 / int(i))\n\nprint(1...
['Runtime Error', 'Accepted']
['s540952288', 's007770007']
[2940.0, 2940.0]
[19.0, 17.0]
[141, 156]
p02934
u398846051
2,000
1,048,576
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}}.
['n = int(input())\na = [1 / int(input()) for _ in range(n)]\nprint(1 / sum(a))\n ', 'n = int(input())\na = [1 / int(x) for x in input().split()]\nprint(1 / sum(a))\n ']
['Runtime Error', 'Accepted']
['s045611396', 's860732796']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 79]
p02934
u401731473
2,000
1,048,576
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}}.
['n = int(input())\n \nbefore_reverse_num = 0\nfor _ in range(n):\n before_reverse_num += 1 / int(input())\n\nafter_reverse_num = 1 / before_reverse_num\n\nprint(after_reverse_num)', 'n = int(input())\n\nbefore_reverse_num = 0\nfor _ in range(n):\n before_reverse_num += 1 / int(input())\n \nafter_reverse_num = 1 / be...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s473313246', 's700483027', 's711371571', 's834468830', 's758615424']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[171, 172, 182, 187, 208]
p02934
u402327305
2,000
1,048,576
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}}.
['N = int(input())\nas = map(int, input().split())\ninvs = map(lambda x: 1.0 / x, as)\nprint(1.0 / sum(invs))', 'N = int(input())\nnumbers = map(int, input().split(" "))\ninvs = map(lambda x: 1.0 / x, numbers)\nprint(1.0 / sum(invs))']
['Runtime Error', 'Accepted']
['s795922069', 's964982585']
[2940.0, 2940.0]
[17.0, 17.0]
[104, 117]
p02934
u403331159
2,000
1,048,576
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}}.
['N=int(input())\nA=map(int,input().split())\nx=0\nfor i in range(N):\n x+=1/A[i]\nx=1/x\nprint(x)\n', 'N=int(input())\nA=list(map(int,input().split()))\nx=0\nfor i in range(N):\n x+=1/A[i]\nx=1/x\nprint(x)\n']
['Runtime Error', 'Accepted']
['s255149138', 's945174667']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 100]
p02934
u406419876
2,000
1,048,576
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}}.
["N = int(input())\nA = map(int, input().split)\nprint('{:.16g}'.format(1 / sum(x for x in A)))", "N = int(input())\nA = list(map(int, input().split()))\nprint('{:.16g}'.format(1 / sum(1 / x for x in A)))\n"]
['Runtime Error', 'Accepted']
['s553755798', 's104991566']
[2940.0, 2940.0]
[17.0, 19.0]
[91, 104]
p02934
u409757418
2,000
1,048,576
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}}.
['n = input()\nnums = input().split(" ")\nrev = float(0)\nfor i in range(int(n)):\n rev += 1/nums[i]\nprint(1/rev)', 'n = int(input())\na_n = input().split(" ")\nprint(a_n)\nrev = float(0)\nfor i in range(n):\n rev += 1/int(a_n[i])\nprint(1/rev)', 'n = int(input())\na_n = input().split(" ")\nrev = float(0)\nfor i in ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s729836688', 's900940850', 's091627895']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[108, 122, 111]
p02934
u427984570
2,000
1,048,576
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}}.
['n = int(input())\nl = list(map(int, input().split()))\n\nsum = 0\n\nfor i in range(i):\n sum += 1/l[i]\nprint(1/sum)', 'n = int(input())\nl = list(map(int, input().split()))\n\nsum = 0\n\nfor i in range(n):\n sum += 1/l[i]\nprint(1/sum)\n']
['Runtime Error', 'Accepted']
['s611879557', 's841561429']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 111]
p02934
u433380437
2,000
1,048,576
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}}.
['import numpy as np\n\n\nn=int(input())\nB = 1/np.array(list(map(int,input().split())))\n\nprint(np.sum(B))\n\n\n', 'import numpy as np\n\n\nn=int(input())\nB = 1/np.array(list(map(int,input().split())))\n\nprint(1/np.sum(B))\n\n\n']
['Wrong Answer', 'Accepted']
['s014775822', 's325352560']
[26656.0, 26948.0]
[116.0, 117.0]
[103, 105]
p02934
u434208140
2,000
1,048,576
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}}.
['n=int(input())\na=map(int,input().split())\nb=0\nfor i in a:\n b+=(1/i)\nprint(b)', 'n=int(input())\na=map(int,input().split())\nb=0\nfor i in a:\n b+=(1/i)\nprint(1/b)']
['Wrong Answer', 'Accepted']
['s209642499', 's311698825']
[2940.0, 2940.0]
[17.0, 18.0]
[77, 79]
p02934
u434872492
2,000
1,048,576
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}}.
['n = int(input())\nl = list(map(int,input().split()))\nA = 0\nfor i in range(n):\n A += 1/l[i]\nprint(A)', 'n = int(input())\nl = list(map(int,input().split()))\nA = 0\nfor i in range(n):\n A += 1/l[i]\nprint(1/A)']
['Wrong Answer', 'Accepted']
['s591742543', 's154419625']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 101]
p02934
u437351386
2,000
1,048,576
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}}.
['n=int(input())\na=list(map(int,input().split()))\nsum=0\nfor i in range(n):\n sum=sum+1/a[i]\nprint(1/ans)\n\n', 'n=int(input())\na=list(map(int,input().split()))\nsum=0\nfor i in range(n):\n sum=sum+1/a[i]\nprint(1/sum)\n']
['Runtime Error', 'Accepted']
['s248053859', 's147193304']
[9088.0, 8952.0]
[24.0, 24.0]
[104, 103]
p02934
u439319240
2,000
1,048,576
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}}.
['tmp = int(input())\nA = []\nfor i in range(0,tmp):\n A.append(int(input()))\nsum = 0\nfor i in range(0,tmp):\n sum = sum + 1/A.pop()\n\nprint(1/sum)', 'tmp = int(input())\nA = [int(i) for i in input().split()]\nsum = 0\nfor i in range(0,tmp):\n sum = sum + 1/A.pop()\nprint(1/sum)']
['Runtime Error', 'Accepted']
['s437823721', 's062811438']
[2940.0, 2940.0]
[17.0, 17.0]
[146, 126]
p02934
u453011924
2,000
1,048,576
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}}.
['n = int(input())\na = map(froat,input().split())\nfor i in range(n-1)\n r += 1 / a[i]\nprint(1/r)', 'd = input()\na = input().split()\nr = 0\nfor i in a:\n r += 1 / i\nprint(1 / r)', 'import fractions\nn = int(input())\na = map(float,input().split())\ns = fractions.gcd(a)\nfor i in range(n)\n ans += a[i] / s...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s155710616', 's174865134', 's195429073', 's202019279', 's287994691', 's503880438', 's632046216', 's667916247', 's699901546', 's742047875', 's751339959', 's761018129', 's913466342', 's946448636', 's484092122']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 21.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[96, 77, 136, 141, 92, 136, 91, 143, 101, 94, 95, 63, 75, 94, 82]
p02934
u457460736
2,000
1,048,576
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}}.
['N=int(input())\nA=list(map(int,input().split()))\n\nfor i in range(N):\n ans+=1/A[i]\n\nprint(1/ans)', 'N=int(input())\nA=list(map(int,input().split()))\n\nans=0\nfor i in range(N):\n ans+=1/A[i]\n\nprint(1/ans)\n']
['Runtime Error', 'Accepted']
['s662597755', 's435471436']
[9100.0, 9036.0]
[27.0, 31.0]
[95, 102]
p02934
u468972478
2,000
1,048,576
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}}.
['n = int(input())\na = list(map(int, input().split()))\ns = 0\nfor i in a:\n s += 1 / a\nprint(1 / s)\n ', 'n = int(input())\na = list(map(int, input().split()))\ns = 0\nfor i in a:\n s += 1 / i\nprint(1 / s)\n ']
['Runtime Error', 'Accepted']
['s765583058', 's655996290']
[9100.0, 9128.0]
[26.0, 28.0]
[99, 99]
p02934
u474514603
2,000
1,048,576
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}}.
['from collections import defaultdict\nimport sys\nimport math\nfrom datetime import datetime\n\ndef sol(n, S):\n ret = 0\n for s in S:\n print(s)\n ret += (1.0 / s)\n print (ret)\n return (1.0/ret)\n\n\n\ndo_submit = True\n\n\ndef input_parse(input_str):\n lines = [x.strip() for x in i...
['Wrong Answer', 'Accepted']
['s525457803', 's121727676']
[3696.0, 3688.0]
[23.0, 23.0]
[874, 1031]
p02934
u475598608
2,000
1,048,576
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}}.
['N=int(input())\nA=list(map(int,input().split()))\ntotal=0\nfor i in range(N):\n total+=1/A[i]\nprint(int(1/total))', 'N=int(input())\nA=list(map(int,input().split()))\ntotal=0\nfor i in range(N):\n total+=1/A[i]\nprint(1/total)']
['Wrong Answer', 'Accepted']
['s730956338', 's932746807']
[2940.0, 2940.0]
[17.0, 20.0]
[112, 107]
p02934
u476195002
2,000
1,048,576
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}}.
['N = int(input())\nans = 0\n\nfor i in range(N):\n A = int(input())\n ans += 1/A\n \nans = 1/ans\n\nprint(ans\n ', 'N = int(input())\nans = 0\n\nfor i in range(N):\n A = int(input())\n ans += 1//A\n \nans = 1//ans\n\nprint(ans)\n ', 'N = int(input())\nans = 0\n\nfor i in range(N):\n A = int(input())\n ans +=...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s228502732', 's659078047', 's830135844', 's266144621']
[2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[105, 108, 106, 122]
p02934
u478372289
2,000
1,048,576
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}}.
['n =int(input())\na = list(map(int,input().split()))\nfor i in range(len(a)):\n a[i]=1/a[i]\n \nprint(sum(a))', 'n =int(input())\na = list(map(int,input().split()))\nfor i in range(len(a)):\n a[i]=1/a[i]\n \nprint(1/sum(a))']
['Wrong Answer', 'Accepted']
['s599177750', 's044371127']
[2940.0, 2940.0]
[18.0, 17.0]
[105, 107]
p02934
u483645888
2,000
1,048,576
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}}.
['n = int(input())\n*p, = map(int,input().split())\nprint(p)\na = 0\nfor i in range(n):\n a += 1/p[i]\n print(a)\nprint(1/a)', 'n = int(input())\n*p, = map(int,input().split())\n#print(p)\na = 0\nfor i in range(n):\n a += 1/p[i]\n #print(a)\nprint(1/a)']
['Wrong Answer', 'Accepted']
['s311419788', 's425606178']
[3060.0, 2940.0]
[18.0, 17.0]
[117, 119]
p02934
u488805026
2,000
1,048,576
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}}.
['N = input()\nA = map(int, input().split())\n\nprint("{.16g}".format(sum(1/x for x in A)))', 'N = input()\nA = map(int, input().split())\n\nprint({:16g}.format(1/sum(1/x for x in A)))', "N = int(input())\nA = map(int, input().split())\nprint('{:.16g}'.format(1 / sum(1 / x for x in A)))"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s292086569', 's569923864', 's246286347']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[86, 86, 97]
p02934
u490623664
2,000
1,048,576
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}}.
['n=int(input())\na=[int(x) for x in input().split()]\nc=0\nfor i in range(n):\n c+=1//i\nprint(1//c)', 'n=int(input())\na=[int(x) for x in input().split()]\nc=0\nfor i in range(n):\n c+=1//a[i]\nprint(1//c)', 'n=int(input())\na=[int(x) for x in input().split()]\nc=0\nfor i in range(n):\n c+=a[i]**(-1)\nprint(c**(-1...
['Runtime Error', 'Runtime Error', 'Accepted']
['s064024283', 's225897130', 's148153286']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[95, 98, 104]
p02934
u511449169
2,000
1,048,576
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}}.
['n=int(input())\na=list(map(int, input().split()))\ntop = 1\nitem = 1\nbelow = []\nbelows = 1\nfor i in a:\n top *= i\nfor num in range(len(a))\n for _, j in enumerate(a):\n if _ != num:\n \titem *= j\n below.append(item)\nfor b in below:\n belows += b\nprint(top/belows)', 'n=int(input())\na=list(map(int, in...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s154793935', 's961234384', 's369932220']
[2940.0, 3064.0, 3064.0]
[17.0, 19.0, 19.0]
[264, 313, 286]
p02934
u514894322
2,000
1,048,576
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}}.
['n = int(input())\n,l* = map(int,input().split())\ninv=0\nfor i in l:\n inv += 1/i\nprint(1/inv)', 'n = int(input())\n*l, = map(int,input().split())\ninv=0\nfor i in l:\n inv += 1/i\nprint(1/inv)']
['Runtime Error', 'Accepted']
['s211860657', 's203723222']
[2940.0, 2940.0]
[17.0, 17.0]
[91, 91]
p02934
u516613126
2,000
1,048,576
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}}.
['N = int(input())\nA = map(int,input().split())\nsum = 0\na = []\nfor i in range(N):\n a.append(1/A[i])\n sum += a[i]\n\nprint(1/sum)', 'N = int(input())\nA = map(float,input().split())\nsum = 0\n\nfor i in A:\n a = 1/i\n \n sum += a\n\nprint(1/sum)']
['Runtime Error', 'Accepted']
['s271397816', 's355296928']
[2940.0, 2940.0]
[17.0, 17.0]
[126, 106]
p02934
u518042385
2,000
1,048,576
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}}.
['n=int(input())\nsum=0\nfor i in range(n):\n num=int(input())\n sum+=1/num\nprint(1/sum)', 'n=int(input())\nsum=0\nl=map(int,input().split())\nfor i in range(n):\n num=l[i]\n sum+=1/num\nprint(1/sum)\n', 'n=int(input())\nsum=0\nl=list(map(int,input().split()))\nfor i in range(n):\n num=l[i]\n sum+=1/num\nprint(1...
['Runtime Error', 'Runtime Error', 'Accepted']
['s017973111', 's391111458', 's054312658']
[2940.0, 3316.0, 2940.0]
[17.0, 22.0, 17.0]
[84, 104, 110]
p02934
u523545435
2,000
1,048,576
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}}.
['N=int(input())\nA=list(map(int,input()))\n\npreans=0\n\nfor i in range(N):\n preans+=1/A[i]\n\nprint(1/preans)', 'N=int(input())\nA=list(map(int,input().split()))\n\npreans=0\n\nfor i in range(N):\n preans+=1/A[i]\n\nprint(1/preans)']
['Runtime Error', 'Accepted']
['s589924791', 's723937069']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 113]
p02934
u528087569
2,000
1,048,576
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}}.
['num = int(input())\nbox = []\nfor i range(num):\n box.append(1/int(input()))\nprint(1/sum(box))', 'num = int(input())\nbox1 = [int(s) for s in input().split()]\nbox = []\nfor i in box1:\n box.append(1/i)\nprint(1/sum(box))\n\n']
['Runtime Error', 'Accepted']
['s693010578', 's135899671']
[2940.0, 2940.0]
[17.0, 17.0]
[92, 121]
p02934
u530844517
2,000
1,048,576
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}}.
['n = int(input())\na = list( map(int, input().split()) )\n\ndnm = 1/a[0]\nfor i in range(1, n):\n dnm += a[i]\nprint(1/dnm)', 'n = int(input())\na = list( map(int, input().split()) )\n\ndnm = 1/a[0]\nfor i in range(1, n):\n dnm += 1/a[i]\nprint(1/dnm)']
['Wrong Answer', 'Accepted']
['s217838349', 's921153827']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 119]
p02934
u532721511
2,000
1,048,576
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}}.
['dif convert_Arc(x):\n return 1/x\n\nN = int(input())\nAn = list(map(int,input().split()))\narcAn = map(convert_Arc,An)\nsum = 0\nfor i in range(N):\n sum += arcAn[i]\nArc_sum = convert_Arc(sum)\nprint(Arc_sum)\n\n\n', 'def convert_Arc(x):\n return 1/x\n\nN = int(input())\nAn = list(map(int,input().split()))\narcAn...
['Runtime Error', 'Accepted']
['s168572500', 's142307714']
[2940.0, 2940.0]
[17.0, 17.0]
[204, 208]
p02934
u534998883
2,000
1,048,576
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}}.
['n = int(input())\na = [int(x) for x in input()]\nans = 1/sum(1/x for x in a)\nprint(ans)', 'n = int(input())\na = [int(x) for x in input().split()]\nans = 1/sum(1/x for x in a)\nprint(ans)']
['Runtime Error', 'Accepted']
['s851924824', 's841491092']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 93]
p02934
u536685012
2,000
1,048,576
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}}.
['n = int(input())\na = list(map(int, input().split()))\n\ngyk1 = 0\nfor i in range(n):\n gyk1 += 1 / a[i]\n\nprint(1 / gyak1)', 'n = int(input())\na = list(map(int, input().split()))\ninverse_ans = 0\n\nfor i in range(n):\n inverse_ans += 1 / a[i]\n \nprint(1 / inverse_ans)']
['Runtime Error', 'Accepted']
['s014891634', 's170416238']
[2940.0, 2940.0]
[17.0, 18.0]
[118, 140]
p02934
u539850805
2,000
1,048,576
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}}.
['n = int(input())\narr = list(map(int,input()))\ntotal = 0\nfor i in range(n):\n total += (1/arr[i])\n print(1/total)\n ', 'n = int(input())\narr = list(map(int,input().split()))\ntotal = 0\nfor i in range(n):\n total += (1/arr[i])\nprint(1/total)\n']
['Runtime Error', 'Accepted']
['s883777846', 's970269529']
[2940.0, 2940.0]
[17.0, 17.0]
[115, 122]
p02934
u540799318
2,000
1,048,576
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}}.
['from fractions import Fraction\nn = int(input())\na = list(map(int, input().split()))\nfor i in range(n):\n a[i] = Fraction(1, a[i])\n\nprint(Fraction(1,sum(a)))', 'n = int(input())\na = [0]*n\nfor i in range(n):\n a[i] = int(input())\n\ndef cal(a):\n return 1/a\n\naa = cal(a)\naa_sum = sum(aa)\n\nprint(cal(aa_sum...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s119606203', 's880132022', 's207985827']
[5472.0, 3064.0, 5048.0]
[47.0, 17.0, 39.0]
[156, 143, 163]
p02934
u546686251
2,000
1,048,576
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}}.
['N = int(input())\nA = map(int, input().split())\nunder = 0\nfor i in range(N):\n under += 1 / A[i]\nprint(1 / under)', 'N = int(input())\nA = list(map(int, input().split()))\nunder = 0\nfor i in range(N):\n under += 1 / A[i]\nprint(1 / under)\n']
['Runtime Error', 'Accepted']
['s770120832', 's395359389']
[2940.0, 2940.0]
[18.0, 17.0]
[114, 121]
p02934
u556225812
2,000
1,048,576
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}}.
['N = int(input())\nlst = list(map(int, input().split()))\nans = []\nfor j in lst:\n ans.append(1 / j)\nprint(sum(ans))', 'N = int(input())\nlst = list(map(int, input().split()))\nans = []\nfor j in lst:\n ans.append(1 / j)\nprint(1 / sum(ans))']
['Wrong Answer', 'Accepted']
['s725796626', 's019769172']
[2940.0, 2940.0]
[17.0, 17.0]
[115, 119]
p02934
u562015767
2,000
1,048,576
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}}.
['N = int(input())\nA = list(map(int,input().split()))\n\nfor i in range(N+1):\n A[i] = 1 / A[i]\n\nprint(1 / sum(A))', 'N = int(input())\nA = list(map(int,input().split()))\n \nfor i in range(N):\n A[i] = 1 / A[i]\n \nprint(1 / sum(A))']
['Runtime Error', 'Accepted']
['s644440121', 's840925295']
[2940.0, 2940.0]
[17.0, 18.0]
[112, 112]
p02934
u562550538
2,000
1,048,576
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}}.
['a=input()\nans=0\nn=list(map(int, input().split())\nfor i in n:\n\tans += 1/i\n\nprint(1/ans)\n', 'a=int(input())\nn=list(int,input().split())\nans=0\nfor i in n:\n ans += 1/i\n\nprint(1/ans)\n', 'a=input()\nans=0\nn=list(map(int, input().split()))\nfor i in n:\n\tans += 1/i\n\nprint(1/ans)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s250143023', 's904939920', 's379821998']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[87, 88, 88]
p02934
u566483072
2,000
1,048,576
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}}.
['n = int(input())\nl = list(map(int,input().split()))\nxx = 0\nfor x in l:\n\t#print(10/x)\n\txx += 10/x\nprint(1/xx)', 'n = int(input())\nl = list(map(int,input().split()))\nxx = 0\nfor x in l:\n\txx += 1/x\nprint(1/xx)']
['Wrong Answer', 'Accepted']
['s975166763', 's077695459']
[3064.0, 2940.0]
[18.0, 18.0]
[108, 93]
p02934
u569776981
2,000
1,048,576
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}}.
['A = list(map(int,input().split()))\nprint(float(1/sum(A)))', 'N = int(input())\nA = list(map(int,input().split()))\nB = []\nfor i in range(N):\n B.append(float(1 / A[i]))\n\nC = float(sum(B))\n\nprint(float(1 / C))']
['Wrong Answer', 'Accepted']
['s745232603', 's826204268']
[9040.0, 9056.0]
[26.0, 27.0]
[57, 147]
p02934
u576434377
2,000
1,048,576
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}}.
['import numpy as np\n\n# not solved by myself\nN = input()\nA = list(map(int, input().split()))\n\nSum = sum(A)\ns = []\nmulti = np.lcm.reduce(A)\nfor a in A:\n s.append(int(multi / a))\n\n\nprint(int(multi / sum(s)))\n\n', 'N = input()\nA = list(map(float, input().split()))\n\nprint(1 / sum(1 / x for x in A))\n']
['Runtime Error', 'Accepted']
['s903088688', 's822840401']
[12508.0, 2940.0]
[147.0, 17.0]
[208, 84]
p02934
u577725859
2,000
1,048,576
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}}.
['N = input()\nlist = []\nlist = [int(x) for x in input().split()]\nwa = 0\nfor x in list:\n wa += 1/x\n\nprint(wa)', 'N = input()\nlist = []\nlist = [int(x) for x in input().split()]\nwa = 0\nfor x in list:\n wa += 1/x\n\nprint(1/wa)']
['Wrong Answer', 'Accepted']
['s326279009', 's434339383']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 111]
p02934
u580236524
2,000
1,048,576
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}}.
['N = int(input())\ni = list(map(int, input().split()))\n\nrev_sum = 0\nfor x in i: \n rev = 1/x\n rev_sum += rev\n\nprint(float(rev_sum))', 'N = int(input())\ni = list(map(int, input().split()))\n\nrev_sum = 0\nfor x in i: \n rev = 1/x\n rev_sum += rev\n ans = 1/rev_sum\n\nprint(float(ans))']
['Wrong Answer', 'Accepted']
['s867724351', 's400740066']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 144]
p02934
u583276018
2,000
1,048,576
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}}.
['n = 1\na = list(map, input().split())\nsum = 0\nfor i in range(n):\n b = 1 / a[i]\n sum += b\nans = 1 / sum\nprint(ans)', 'n = 1\na = list(map(int, input().split()))\nsum = 0\nfor i in range(n):\n b = 1 / a[i]\n sum += b\nans = 1 / sum\nprint(ans)', 'n = 1\na = list(map(int, input().split()))\naa = 0\nfor i in ra...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s158223963', 's560834242', 's683449101', 's741808934', 's571013100']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 17.0]
[114, 119, 116, 118, 127]
p02934
u586639900
2,000
1,048,576
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}}.
['import numpy as np\n\nN = int(input())\nA = list(map(int, input().split()))\n\nA = np.array(A)\nB = 1 / A\nC = B.sum()\nprint(C)', 'import numpy as np\n\nN = int(input())\n\nA = np.array(input().split(), dtype=np.float64)\nans = 1 / (1/A).sum()\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s362435639', 's919593834']
[12504.0, 12424.0]
[153.0, 151.0]
[120, 119]
p02934
u589432040
2,000
1,048,576
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}}.
['N = int(input().split())\nA = list(map(int, input().split()))\n\ns=0\nfor i in A:\n s += 1/A\nprint(1/s)', 'N = int(input())\nA = list(map(int, input().split()))\n\ns=0\nfor i in A:\n s += 1/A\nprint(1/s)\n', 'N = int(input())\nA = list(map(int, input().split()))\n\ns=0\nfor i in A:\n s += 1/i\nprint(1/s)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s537846537', 's543259988', 's743057807']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[99, 92, 92]
p02934
u590253847
2,000
1,048,576
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}}.
['n = int(input())\ny = []\n\na = input().split()\nfor i in range(n):\n x = 1/int(a[i])\n y.append(x)\nprint(y)\n\ns = sum(y)\nan = 1/s\n\nprint(an)\n', 'n = int(input())\ny = []\nfor i in n:\n a = int(input())\n x = 1/a\n y.append(x)\n\ns = sum(y)\nan = 1/s\n\nprint(s)', 'n = int(input())\ny = []\n\na =...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s168310265', 's812556229', 's753024833']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[141, 115, 142]
p02934
u592248346
2,000
1,048,576
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}}.
['import fractions\nn = int(input())\na = list(map(int,input().split()))\na.sort()\nif n==1:\n print(a)\nelse:\n s = a[0]\n for i in range(1,n):\n s = s * a[i] // fractions.gcd(s, a[i])\n ans = 0\n for i in a:\n print(s//i)\n ans += s//i\n print(s/ans)', 'import fractions\nn = int...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s227629075', 's966564018', 's765589541']
[5048.0, 5560.0, 2940.0]
[36.0, 87.0, 17.0]
[275, 255, 110]
p02934
u593019570
2,000
1,048,576
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}}.
['n = int(input())\na = list(map(int,input()))\n\nb = 0\nfor i in range(n):\n b = b + 1 / a[i]\n\nprint(1 / b)', 'n = int(input())\na = list(map(int,input().split()))\n\nb = 0\nfor i in range(n):\n b = b + 1 / a[i]\n\nprint(1 / b)\n']
['Runtime Error', 'Accepted']
['s334494386', 's766864213']
[2940.0, 2940.0]
[17.0, 17.0]
[102, 111]
p02934
u594956556
2,000
1,048,576
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}}.
['N = int(input())\nA = list(map(int, input().split()))\n\nans = 0\nfor Ai in A:\n ans += 1/Ai\n\nprint(ans)', 'N = int(input())\nA = list(map(int, input().split()))\n\nans = 0\nfor Ai in A:\n ans += 1/Ai\n\nprint(1/ans)\n']
['Wrong Answer', 'Accepted']
['s896243460', 's200978525']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 103]
p02934
u600261652
2,000
1,048,576
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}}.
['def resolve():\n N = int(input())\n all = list(map(int, input().split()))\n ans = 0\n for i in all:\n ans += 1/i\n print(ans)\nresolve()', 'def resolve():\n N = int(input())\n all = list(map(int, input().split()))\n ans = 0\n for i in all:\n mom = 1/i\n ans += mom\n ...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s364909581', 's545684545', 's907853678', 's404929514']
[2940.0, 3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[151, 186, 151, 185]
p02934
u603234915
2,000
1,048,576
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}}.
['N = int(intput())\nL = list(map(int, input().split())\nL_inv = [1/l for l in L]\nprint(1 / sum(L_inv))', 'N = int(input())\nL = list(map(int, input().split()))\nL_inv = [1/l for l in L]\nprint(1 / sum(L_inv))\n\n']
['Runtime Error', 'Accepted']
['s533757181', 's095313141']
[2940.0, 3060.0]
[17.0, 19.0]
[99, 101]
p02934
u606626641
2,000
1,048,576
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}}.
['#coding:utf-8\n\na = int(input())\nn = sum(list(map(int,input().split())))\n\nprint(1/n)', '#coding:utf-8\n\na = int(input())\nn = list(map(int,input().split()))\n\nrev = [1/i for i in n]\nrev = 1/sum(rev)\nprint(rev)']
['Wrong Answer', 'Accepted']
['s587784569', 's570862137']
[2940.0, 2940.0]
[17.0, 18.0]
[83, 118]
p02934
u607737438
2,000
1,048,576
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}}.
["A = list(map(int, input().split(' ')))\n\ndef multi_all(A):\n s = 1\n for a in A:\n s *= a\n return s\n\nM = multi_all(A)\n\nif N == 1: print(A[0])\nelse:\n S = 0\n for a in A:\n S += M / a\n print(M/S)\n", "N = int(input())\nA = list(map(int, input().split(' ')))\n\ndef multi_all(A):\n s = 1\n for a in...
['Runtime Error', 'Accepted']
['s124503360', 's946922765']
[2940.0, 2940.0]
[17.0, 17.0]
[200, 217]
p02934
u608327706
2,000
1,048,576
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}}.
['N = int(input())\nA = [ int(input()) for i in range(N)]\na = [ 1/i for i in A]\nres = 1/(sum(a))\nprint(res)', 'N = int(input())\nA = [ int(input()) for i in range(N)]\na = [ 1/i for i in A]\nres = 1/(sum(a))\nprint(res)', 'N = int(input())\nA = map(int,input().split())\na = [ 1/i for i in A]\nres = 1/(sum(a))\nprint...
['Runtime Error', 'Runtime Error', 'Accepted']
['s901704250', 's999887080', 's100453828']
[2940.0, 3056.0, 2940.0]
[17.0, 17.0, 17.0]
[104, 104, 95]
p02934
u609814378
2,000
1,048,576
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}}.
['N = int(input())\n\nA = [int(input()) for b in range(N)]\nAns = 0\n\nfor i in range(N):\n v += 1 / a[i]\nprint(1 / Ans)\n', 'N = int(input())\n\nA = [int(input()) for _ in range(N)]\nAns = 0\n\nfor i in range(N):\n v += 1 / a[i]\nprint(1 / Ans)\n', 'N = int(input())\n\nA = list(map(int, input().split()))\nAns =...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s025090343', 's738976031', 's979410564', 's247305434']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[116, 116, 114, 139]
p02934
u611090896
2,000
1,048,576
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}}.
['n = int(input())\na = list(map(int,input().split()))\ntotal=0\nfor i in a:\n total += 1/a\nprint(1/total)', 'n = int(input())\na = list(map(int,input().split()))\ntotal=0\nfor i in a:\n total += 1/i\nprint(1/total)\n']
['Runtime Error', 'Accepted']
['s322898589', 's460701889']
[9140.0, 8972.0]
[21.0, 27.0]
[101, 102]
p02934
u617829104
2,000
1,048,576
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}}.
['N = int(input())\nAs = list(map(int, input().split()))\nAs_gyaku = [1 / i for i in As]\nAs_gyaku_sum = sum(As_gyaku)\nprint(As_gyaku_sum)\nprint(1 / As_gyaku_sum)', 'N = int(input())\nAs = list(map(int, input().split()))\nAs_gyaku = [1 / i for i in As]\nAs_gyaku_sum = sum(As_gyaku)\nprint(1 / As_gyaku_sum)\n']
['Wrong Answer', 'Accepted']
['s181059487', 's979499872']
[2940.0, 2940.0]
[17.0, 18.0]
[157, 138]
p02934
u620157187
2,000
1,048,576
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}}.
['import numpy as np\n\nN = int(input())\nA_array = np.array([int(x) for x in input().split()])\n\na_array = 1/A_array\nprint(np.sum(a_array))', 'import numpy as np\n\nN = int(input())\nA = list(map(int, input().split()))\n\nA_sum = 0\nfor i in A:\n A_sum += 1/i\nprint(A_sum)', 'import numpy as np\n\nN = int(input()...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s234605941', 's631311151', 's636398130', 's759061894', 's865897908', 's408086805']
[14324.0, 22256.0, 12488.0, 21908.0, 22128.0, 2940.0]
[147.0, 1548.0, 150.0, 1016.0, 1657.0, 17.0]
[134, 125, 126, 132, 116, 112]
p02934
u620806894
2,000
1,048,576
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}}.
['ans = 0\nfor i in ai:\n ans=ans+1/i\n\nprint(1/ans)\n', 'n = int(input())\nai = list(map(int, input().split()))\n\n#print(ai)\n\nans = 0\nfor i in ai:\n ans=ans+1/i\n\nprint(1/ans)\n']
['Runtime Error', 'Accepted']
['s414394394', 's052236262']
[2940.0, 2940.0]
[17.0, 17.0]
[51, 118]
p02934
u620846115
2,000
1,048,576
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}}.
['a = int(input())\nb = list(map(int,input().split()))\nc = 0\nfor i in range(0,a-1):\n c += c + 1/b[i]\nprint(1/c)', 'a = int(input())\nb = list(int,input().split())\nc = 1/b[0]\nfor i in range(a-1):\n c = c + 1/b[i]\nprint(1/c)', 'a = int(input())\nb = list(int,input().split())\nc = 1/b[0]\nfor i in range(len(b)-1)...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s459873600', 's562040768', 's608485999', 's741150377', 's862397891', 's900051244', 's201188962']
[9168.0, 9056.0, 9072.0, 9008.0, 9120.0, 9020.0, 9172.0]
[25.0, 20.0, 24.0, 26.0, 24.0, 21.0, 26.0]
[109, 106, 111, 105, 109, 107, 101]
p02934
u621509924
2,000
1,048,576
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}}.
['N=int(input())\nList=list(map(int,input().split()))\na=0\nfor i in range (len(List)):\n a= a+(1/i)\nprint (1/a)', 'N=int(input())\nList=list(map(int,input().split()))\na=0\nfor i in range (len(List)):\n a= a+(1/(List[i])\nprint (1/a)', 'N=int(input())\nList=list(map(int,input().split()))\na=0\nfor i in range (len...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s058632309', 's114584781', 's873258793', 's214431946']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[108, 115, 118, 112]
p02934
u634159866
2,000
1,048,576
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}}.
['N = int(input())\nA = list(map(int, input()))\n\nrev = []\nfor a in A:\n rev.append(1/float(a))\n\nprint(1/sum(rev))', 'N = int(input())\nA = list(map(int, input()))\n\nrev = []\nfor a in A:\n rev.append(1/float(a))\n\nprint(1/float(sum(rev)))', 'N = int(input())\nA = list(map(int, input().split()))\n\nrev = []...
['Runtime Error', 'Runtime Error', 'Accepted']
['s094016268', 's277861639', 's206931861']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[112, 119, 131]
p02934
u642418876
2,000
1,048,576
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}}.
['N=int(input())\nA=list(int(input()))\nsum=0\ni=0\nwhile i<=N-1:\n sum+=1/A[i]\n i+=1\nrev=1/sum\nprint(rev)\n', 'N=int(input())\nA=list(int,input())\nsum=0\ni=0\nwhile i<=N-1:\n sum+=1/A[i]\n i+=1\nrev=1/sum\nprint(rev)\n', 'N=int(input())\nA=list(map(int,input().split()))\nsum=0\ni=0\nwhile i<=N-1:\n sum+=1/A[i...
['Runtime Error', 'Runtime Error', 'Accepted']
['s298616115', 's804776511', 's051612089']
[2940.0, 2940.0, 3064.0]
[17.0, 18.0, 17.0]
[102, 101, 114]
p02934
u642823003
2,000
1,048,576
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}}.
['N = int(input())\nA = list(map(int, input(.split())))\noutput =0\n\nfor i in range(N):\n output += 1 / A[i]\n \nprint(1 / output)\n', 'N = int(input())\nA = list(map(int, input().split()))\noutput =0\n\nfor i in range(N):\n output += 1 / A[i]\n \nprint(1 / output)\n']
['Runtime Error', 'Accepted']
['s798002045', 's340294827']
[2940.0, 2940.0]
[17.0, 17.0]
[129, 129]
p02934
u647287452
2,000
1,048,576
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}}.
['a=int(input())\nli = list(map(float,input().split()))\nfor i in li:\n i = 1/i\ns=sum(li)\nprint(1/s)', 'a=int(input())\nli = list(map(float,input().split()))\nfor i in range(a):\n li[i] = 1/li[i]\ns=sum(li)\nprint(1/s)\n']
['Wrong Answer', 'Accepted']
['s681651571', 's821550993']
[2940.0, 2940.0]
[18.0, 17.0]
[96, 111]
p02934
u647920014
2,000
1,048,576
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}}.
['\nfrom fractions import Fraction\nn=int(input())\nm=input().split()\ntmp =0\n\nfor x in range(0,n):\n a = Fraction(1, int(m[x]))\n tmp+=a\n \nprint(Fraction(1, z))', '\nfrom fractions import Fraction\nn=int(input())\nm=input().split()\ntmp =0\n\nfor x in range(0,n):\n a = Fraction(1, int(m[x]))\n tmp+=a\n \na_f...
['Runtime Error', 'Accepted']
['s511331886', 's923431078']
[5560.0, 5348.0]
[51.0, 39.0]
[197, 216]
p02934
u653837719
2,000
1,048,576
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}}.
['a = int(input())\ns = input()\n\nprint(s if a >= 3200 else "red")\n', 'n = int(input())\na = list(map(int, input().split()))\nsum = 0\n\nfor i in a:\n sum += 1 / i\n\n\nprint(1 / sum)\n']
['Wrong Answer', 'Accepted']
['s764707325', 's345199283']
[2940.0, 2940.0]
[17.0, 17.0]
[63, 108]
p02934
u662954829
2,000
1,048,576
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}}.
['N = int(input)\nAn = [int(x) for x in input().split()]\n\nnum = 0.\nfor i in An:\n num += 1/i\n\nprint(1/num)', '\nN = int(input())\nAn = [int(x) for x in input().split()]\n\nnum = 0\nfor i in An:\n\tnum += 1/i\n\nprint(1/num)']
['Runtime Error', 'Accepted']
['s996087766', 's342905637']
[2940.0, 2940.0]
[17.0, 18.0]
[103, 104]
p02934
u666415539
2,000
1,048,576
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}}.
['n=int(input())\na=map(int,input().split())\n\nans=0\nfor i in range(n):\n ans+= 1/a[i]\n\nprint(1/ans)', 'n=int(input())\na=list(map(int,input().split()))\n\nans=0\nfor i in range(n):\n ans+= 1/a[i]\n\nprint(1/ans)']
['Runtime Error', 'Accepted']
['s846068131', 's354355018']
[2940.0, 2940.0]
[18.0, 17.0]
[96, 102]
p02934
u666844906
2,000
1,048,576
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}}.
['N = int(input())\nl = list(map(int, input().split()))\nsum = 0\nfor i in l:\n sum = sum + 1/l\nprint(1/sum)', 'N = int(input())\nA = map(int, input().split())\nprint(1 / sum(1 / x for x in A))']
['Runtime Error', 'Accepted']
['s105961911', 's503348160']
[2940.0, 2940.0]
[17.0, 18.0]
[103, 79]
p02934
u668924469
2,000
1,048,576
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}}.
['n = int(input())\na = list(map(1/(int,input().split())))\nprint(1/sum(a))', 'n = int(input())\na = list(map(int,input().split()))\na = [1/a[i] for i in range(n)]\nprint(1/sum(a))']
['Runtime Error', 'Accepted']
['s326600967', 's373785519']
[2940.0, 2940.0]
[17.0, 18.0]
[71, 98]
p02934
u669039626
2,000
1,048,576
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}}.
['N=int(input())\nA = list(map(int, input().split()))\na=0\n\nfor i in range(N):\n\ta += 1/A[0]\n\nprint(1/a)\n\n ', 'N=int(input())\nA = list(map(int, input().split()))\n\nfor i in range(N):\n A[i] = 1/A[i]\n \nprint(1/sum(A))']
['Wrong Answer', 'Accepted']
['s862912198', 's821520655']
[2940.0, 2940.0]
[17.0, 19.0]
[105, 105]
p02934
u671861352
2,000
1,048,576
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}}.
['N = int(input())\nA = list(map(int, input().split()))\n\ns = [1 / a for a in A]\nans = sum(s)\nprint(ans)', 'N = int(input())\nA = list(map(int, input().split()))\n\ns = [1 / a for a in A]\nans = sum(s)\nprint(1 / ans)']
['Wrong Answer', 'Accepted']
['s015369404', 's362465625']
[2940.0, 2940.0]
[18.0, 17.0]
[100, 104]
p02934
u674190122
2,000
1,048,576
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}}.
["'''\n2\n10 30\n'''\nlens = int(input())\narrs = [1/int(x) for x in input().split()]\nprint(1/arrs)", 'lens = int(input())\narrs = sum([1/int(x) for x in input().split()])\nif arrs != 0:\n print(1/arrs)']
['Runtime Error', 'Accepted']
['s838320394', 's240536049']
[2940.0, 2940.0]
[17.0, 18.0]
[92, 97]
p02934
u681197547
2,000
1,048,576
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}}.
['N = input()\nnums = map(int, input().split())\n\nreturn 1 / sum(1 / num for num in nums)', 'N = input()\nnums = map(int, input().split())\n \nreturn 1 / sum(1 / num for num in nums)', 'N = input()\nnums = input().split()\n \nreturn 1 / sum(1 / int(num) for num in nums)', 'N = input()\nnums = input().split()\n \nretur...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s133394235', 's208819639', 's409453841', 's854144200', 's466042645']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[85, 86, 81, 81, 86]
p02934
u682181971
2,000
1,048,576
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}}.
['N = input()\nA = list(map(int,input().split()))\nA = sum(list(map(lambda x: 1/x, A))\nprint(1/A)', 'N = input()\nA = list(map(int,input().split()))\nA = sum(list(map(lambda x: 1/x, A)))\nprint(1/A)\n']
['Runtime Error', 'Accepted']
['s417398489', 's700554461']
[2940.0, 2940.0]
[18.0, 17.0]
[93, 95]
p02934
u687443343
2,000
1,048,576
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}}.
['N = int(input())\nLists = map(int,input().split())\nsum = 0\nfor x in Lists:\n sum+=i/x\n \nprint(1/sum)\n', 'N = int(input())\nLists = map(int,input().split())\nsum = 0\nfor x in Lists:\n sum+=i/x\n \nprint(i/sum)', 'N = int(input())\nLists = map(int,input().split())\nsum = 0\nfor x in Lists:\n sum+=1/x\nprint(1/...
['Runtime Error', 'Runtime Error', 'Accepted']
['s788362285', 's806996903', 's541080205']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[100, 99, 97]
p02934
u688319022
2,000
1,048,576
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}}.
['N = int(input())\nA =map(int,input().split())\nsum=0\nfor i in range(N):\n sum+=1/A[i]\nprint(1/sum)\n ', 'N = int(input())\nA = input().split()\nsum=0\nfor i in range(N):\n sum+=1/int(A[i])\nprint(1/sum)\n \n']
['Runtime Error', 'Accepted']
['s798100132', 's101223264']
[2940.0, 2940.0]
[17.0, 18.0]
[99, 97]
p02934
u690781906
2,000
1,048,576
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}}.
['# -*- coding: utf-8 -*-\nN = int(input())\narr = list(map(int, input().split()))\nprint(arr[0])\ntotal = 0\nfor a in arr:\n total += 1/a\nprint(1/total)', '# -*- coding: utf-8 -*-\nN = int(input())\narr = list(map(int, input().split()))\ntotal = 0\nfor a in arr:\n total += 1/a\nprint(1/total)']
['Wrong Answer', 'Accepted']
['s315426765', 's771107320']
[2940.0, 2940.0]
[18.0, 19.0]
[148, 134]
p02934
u690844139
2,000
1,048,576
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}}.
['N = int(input())\nk = list(map(int,input().split()))\nsum = 0\nfor i in k:\n sum += 1/k[i]\nprint(1/sum)', 'N = int(input())\nk = list(map(int,input().split()))\nsum = 0\nfor i in range(N):\n sum += 1/k[i]\nprint(1/sum)']
['Runtime Error', 'Accepted']
['s483199606', 's410548570']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 107]
p02934
u692054751
2,000
1,048,576
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}}.
['N = int(input())\nA_s = LI()\n\ntotal = 0\nfor a in A_s:\n total+=(1/a)\n \nprint(1/total)', 'def LI():\n return [int(s) for s in input().split()]\n\nN = int(input())\nA_s = LI()\n \ntotal = 0\nfor a in A_s:\n total+=(1/a)\n \nprint(1/total)']
['Runtime Error', 'Accepted']
['s001069559', 's708835421']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 140]
p02934
u692242206
2,000
1,048,576
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}}.
['N=int(input())\na=[int(x) for x in input().split()]\n\nfor i in range(N):\n b+=1/a[i]\n \nprint(1/b)', 'N=int(input())\na=[int(x) for x in input().split()]\nb=0\nfor i in range(N):\n b+=1/a[i]\n \nprint(1/b)']
['Runtime Error', 'Accepted']
['s098977208', 's163656569']
[3064.0, 2940.0]
[18.0, 17.0]
[100, 103]
p02934
u693933222
2,000
1,048,576
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}}.
['n = int(input())\na = list(map(int,input().split()))\n\ntmp = 0\nfor i in a:\n tmp += 1/a \n\nprint(1/tmp)', 'n = int(input())\na = list(map(int,input().split()))\n \ntmp = 0\nfor i in a:\n tmp += 1/i\n\nprint(1/tmp)']
['Runtime Error', 'Accepted']
['s920853998', 's706302527']
[2940.0, 2940.0]
[17.0, 17.0]
[101, 106]
p02934
u693953100
2,000
1,048,576
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}}.
['input()\na=list(map(int,input().split()))\nres=0\nfor i in a:\n res+=1/i\nprint(res)', 'input()\na=list(map(int,input().split()))\nres=0\nfor i in a:\n res+=1/i\nprint(1/res)\n']
['Wrong Answer', 'Accepted']
['s260921412', 's259820663']
[2940.0, 2940.0]
[17.0, 17.0]
[82, 85]
p02934
u698437687
2,000
1,048,576
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}}.
['a,b=map(int,input().split())\nprint((b-2)//(a-1)+1)', 'n=int(input())\nprint(1/sum([1/float(i) for i in input().split()]))']
['Runtime Error', 'Accepted']
['s962982286', 's593899790']
[2940.0, 2940.0]
[18.0, 17.0]
[50, 66]