Why i am getting runtime error when i submit this program in python?

import sys
import math

def gcd_list(temp_list):
    rem = temp_list[0]
    for i in range(1,len(temp_list)):
        rem = math.gcd(rem,temp_list[i])
    return rem

for i in range(int(input())):
    n = int(input())
    s_list = list(map(int,input().split()))
    temp = s_list
    result = sys.maxsize
    for j in range(len(temp)):
        copy = temp[:j]+temp[j+1:]
        g = gcd_list(copy)
        result = min(result,(sum(copy)/g)+1)

If your error says NZEC, you might not be providing input in the input box.
input() method in python will try to read lines from the input box and if doesn’t get any input then it will throw that error