about summary refs log tree commit diff
path: root/codechef/snug-fit.py
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/snug-fit.py')
-rwxr-xr-xcodechef/snug-fit.py5
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())))))