Task: | Differences |
Sender: | Agonaudid |
Submission time: | 2019-05-25 11:38:06 +0300 |
Language: | Python3 |
Status: | READY |
Result: | ACCEPTED |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.26 s | details |
Code
try: while True: n = int(input()) a = sorted(list(map(int, input().split()))) b = sorted(list(map(int, input().split()))) summa = 0 for x in range(len(a)): summa += abs(a[x]-b[x]) print(summa) except EOFError: exit()