Task: | Differences |
Sender: | bits pls |
Submission time: | 2019-05-25 11:21:57 +0300 |
Language: | Python3 |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.25 s | details |
Code
n = int(input())a = sorted(map(int, input().split()))b = sorted(map(int, input().split()))s = 0for i in range(n):s += abs(a[i] - b[i])print(s)