Hi, I am new here. And trying to solve SNUG_FIT problem. Running on my pc editor, program works , but here I receive this error.
Traceback (most recent call last):
File “./prog.py”, line 2, in
EOFError: EOF when reading a line
T=int(input())
S=[0 for y in range(T)]
for i in range(T):
N=int(input())
A=input().split()
B=input().split()
for j in range(len(A)):
A[j]=int(A[j])
B[j]=int(B[j])
summa=0
for j in range(N):
L=min(A)
O=min(B)
maz=min(L,O)
summa=summa+maz
A.remove(L)
B.remove(O)
S[i]=summa
for i in range(len(S)):
print(S[i])