CSES - HIIT Open 2019 - Results
Submission details
Task:Differences
Sender:Haapsaari
Submission time:2019-05-25 11:28:37 +0300
Language:Python3
Status:READY
Result:
Test results
testverdicttime
#10.23 sdetails

Code

n = int(input())
a,b = list(map(lambda x: int(x), input().split(' '))), list(map(lambda x: int(x), input().split(' ')))

a.sort()
b.sort()

print(abs(sum(a) - sum(b)))

Test details

Test 1

Verdict:

input
100000
880024238 421943433 201872615 ...

correct output
79489641069

user output
20301332645