Submission details
Task:Backpacking
Sender:aalto26am_019
Submission time:2026-08-31 16:30:33 +0300
Language:Python3 (CPython3)
Status:READY
Result:
Test results
testverdicttime
#10.02 sdetails
#20.02 sdetails
#30.02 sdetails
#40.02 sdetails

Code

def add(string):
 string = string.split(" ")
 A = int(string[0])
 B = int(string[1])
 return A + B

add(3,5)

Test details

Test 1

Verdict:

input
3 5

correct output
8

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 7, in <module>
    add(3,5)
TypeError: add() takes 1 positional argument but 2 were given

Test 2

Verdict:

input
571335 750047

correct output
1321382

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 7, in <module>
    add(3,5)
TypeError: add() takes 1 positional argument but 2 were given

Test 3

Verdict:

input
744471 719178

correct output
1463649

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 7, in <module>
    add(3,5)
TypeError: add() takes 1 positional argument but 2 were given

Test 4

Verdict:

input
308833 436123

correct output
744956

user output
(empty)

Error:
Traceback (most recent call last):
  File "/box/input/code.py", line 7, in <module>
    add(3,5)
TypeError: add() takes 1 positional argument but 2 were given