CSES - HIIT Open 2019 - Results
Submission details
Task:Alien Invasion II
Sender:Haapsaari
Submission time:2019-05-25 11:27:51 +0300
Language:Python3
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.06 sdetails
#30.05 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
2368469234876449

correct output
22368469234876449
3 7456156411625483

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 2, in <module>
    a,b = list(map(lambda x: int(x), input().split(' '))), list(map(lambda x: int(x), input().split(' ')))
EOFError: EOF when reading a line

Test 2

Verdict:

input
292929292929292929292929292931

correct output
129292929292929292929292929293...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 2, in <module>
    a,b = list(map(lambda x: int(x), input().split(' '))), list(map(lambda x: int(x), input().split(' ')))
EOFError: EOF when reading a line

Test 3

Verdict:

input
292929292929292929292929292979

correct output
129292929292929292929292929297...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 2, in <module>
    a,b = list(map(lambda x: int(x), input().split(' '))), list(map(lambda x: int(x), input().split(' ')))
EOFError: EOF when reading a line