about summary refs log tree commit diff
path: root/codechef/snug-fit.py
blob: 58e17005239e176f699f5a7de0c7f68ec527bd0a (plain) (blame)
1
2
3
4
5
#!/usr/bin/env python
for t in range(int(input())):
    input()
    print(sum(map(min, sorted(map(int, input().split())),
                  sorted(map(int, input().split())))))