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