From 1f9cdd4cce664439625f13da1baf894190b7e9a6 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 17 Feb 2020 20:29:47 +0700 Subject: Thank you Corona for giving me some time to do this --- codechef/snug-fit.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 codechef/snug-fit.py (limited to 'codechef/snug-fit.py') 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()))))) -- cgit 1.4.1