Submission #6984933


Source Code Expand

Copy
n = int(input())
a = list(map(int,input().split()))
# pp = sum(a)

su = 0
p = 1
for i in a:
	p *= i

for i in a:
	su += (p/i)

print(p/su)

Submission Info

Submission Time
Task B - Resistors in Parallel
User guvi007
Language PyPy3 (2.4.0)
Score 200
Code Size 150 Byte
Status AC
Exec Time 171 ms
Memory 38384 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 10
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10
Case Name Status Exec Time Memory
a01 AC 169 ms 38384 KB
a02 AC 168 ms 38256 KB
a03 AC 164 ms 38256 KB
b04 AC 165 ms 38256 KB
b05 AC 171 ms 38256 KB
b06 AC 164 ms 38256 KB
b07 AC 162 ms 38256 KB
b08 AC 163 ms 38256 KB
b09 AC 161 ms 38256 KB
b10 AC 161 ms 38256 KB