CSES - HIIT Open 2019 - Results
Submission details
Task:Differences
Sender:Piltit
Submission time:2019-05-25 11:43:20 +0300
Language:Python3
Status:READY
Result:
Test results
testverdicttime
#10.05 sdetails

Code

from itertools import zip
import math
n = input()
a = sorted(map(int, input().split()))
b = sorted(map(int, input().split()))
c = 0

for i in zip(a, b):
		c += math.abs((i[0]-i[1])

print(c)

Test details

Test 1

Verdict:

input
100000
880024238 421943433 201872615 ...

correct output
79489641069

user output
(empty)

Error:
File "input/code.py", line 11
    print(c)
        ^
SyntaxError: invalid syntax