def solve(A): res=[] ponum=[0,0,0] nenum=[0,0] if len(A)<3: return '<3 numbers in array' elif max(A)==0:#考虑到最大值为0 return 0 elif max(A)<0:#考虑到全部值都<0,取所有最大值相乘即可 for num in A: nenum = [A[0],A[1],A[2]] if num>min(nenum): ...