https://blog.csdn.net/z13653662052/article/details/101080762 n, m = list(map(int, input().split())) N = list(map(int, input().split())) M = list(map(int, input().split())) N.sort() M.sort() if M[0] < 0 and N[0] < 0: if M[-1] > 0 and N[-1] > 0: l1 = N[0] * M[0] ...