diff options
Diffstat (limited to 'codechef/snug-fit.py')
-rwxr-xr-x | codechef/snug-fit.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/codechef/snug-fit.py b/codechef/snug-fit.py new file mode 100755 index 0000000..58e1700 --- /dev/null +++ b/codechef/snug-fit.py @@ -0,0 +1,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()))))) |