Please read the new rule regarding the restriction on the use of AI tools. ×

Getting a Runtime Error on test 1

Revision en2, by rishipunna, 2020-09-12 20:25:35

I'm getting a Runtime Error when I submitted the code:

import itertools
import numpy as np
n=int(input())
for i in range(n):
	m=int(input())
	x=list(map(int,input().split()))
	minn=None
	for comb in itertools.combinations(x, 5):
		r=np.prod(comb)
		if minn==None:
			minn=r
		elif r>minn:
			minn=r
	print(minn)

for the problem https://codeforces.me/contest/1406/problem/B.

Please help me out with this!

Tags runtime error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English rishipunna 2020-09-12 20:25:35 0 (published)
en1 English rishipunna 2020-09-12 20:22:05 473 Initial revision (saved to drafts)