Getting a Runtime Error on test 1

Правка en1, от rishipunna, 2020-09-12 20:22:05

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.net/contest/1406/problem/B.

Please help me out with this!

Теги runtime error

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский rishipunna 2020-09-12 20:25:35 0 (published)
en1 Английский rishipunna 2020-09-12 20:22:05 473 Initial revision (saved to drafts)