@nguyenthehien/

Draftforsubmissions=D

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
o = int(input())
union = []
for i in range(o):
  e = [int(s) for s in input().split()]
  r = [int(d) for d in input().split()]
  h = [int(e) for e in input().split()]
  for x in range(e[0]):
    union.append(r[x])
  for p in range(e[1]):
    union.append(h[p])
  print(union.sort())