刷题 集合

来源:互联网 发布:浪拍云的淘宝人生 编辑:程序博客网 时间:2024/06/05 04:05
while 1:
    n_m = raw_input()
    if n_m == "":
        continue
    n,m = [int(x) for x in n_m.strip().split()]
    set_1 = raw_input()
    set_2 = raw_input()
    if set_1 == "":
        continue
    set_3 = set_1+' '+set_2
    set_3 = list(set([int(x) for x in set_3.split()]))
    set_3.sort()
    set_3 = [str(x) for x in set_3]
    print ' '.join(set_3)
原创粉丝点击