题解 | #整型数组合并#
整型数组合并
https://www.nowcoder.com/practice/c4f11ea2c886429faf91decfaf6a310b
def fun(): a = int(input()) b, *args = map(int, input().split()) list1 = [b, *args] if a != len(list1): raise Exception("报错") c = int(input()) d, *args = map(int, input().split()) list2 = [d, *args] if c != len(list2): raise Exception("报错") list3 = list1 + list2 list4 = [] for i in list3: if i not in list4: list4.append(i) list4.sort() for i in list4: print(i,end="") if __name__ == "__main__": try: fun() except Exception as ee: print("报错{}".format(ee))