diff --git a/src/minimumscalar.py b/src/minimumscalar.py new file mode 100644 index 0000000..efe75ed --- /dev/null +++ b/src/minimumscalar.py @@ -0,0 +1,7 @@ +t = int(input()) +for i in range(t): + _ = input() + a = sorted([int(d) for d in input().split()]) + b = sorted([int(d) for d in input().split()], reverse=True) + v = sum(x * y for x, y in zip(a, b)) + print(f"Case #{i+1}: {v}")