yanbo long

Generation

generate functionSat, 08 Apr 2023

输入格式是 W1=input() W2=input() 将两个数列的数据的差 然后按升序排列 结果用"[""]"括起来 每个数据之间加","

def re(l): return l.split() def s(l): return sorted(l) def m(l): return map(int, l) def r(l): return list(map(int, l)) def p(l): return print(l) def c(l): return " ".join(l) def f(l): return ",".join(l) def a(l): return ",".join(list(map(str, s(map(int, l))))) w1 = re(input()) w2 = re(input()) p("[" + f(a(w1)) + "]") p("[" + f(a(w2)) + "]")

Questions about programming?Chat with your personal AI assistant