Submission details
Task:Golf
Sender:Casinosort
Submission time:2025-11-08 13:03:00 +0200
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.07 sdetails
#20.07 sdetails
#30.06 sdetails
#40.06 sdetails
#50.06 sdetails
#60.06 sdetails

Code

import sys



args = sys.argv
lines = args[1].split('\n')

ekarivi = lines[1].split(' ')
tokarivi = lines[2].split(' ')
numerot1= 0
numerot2 = 0
for x in ekarivi:
    if x != '':
        numerot1 += int(x)
for x in tokarivi:
    if x != '':
        numerot2 += int(x)



if numerot1 > numerot2:
    print("Maija")
elif numerot2 > numerot1:
    print("Uolevi")
else:
    print("Tie")

Test details

Test 1

Verdict:

input
 159 168 193 218 170 221 158 2...

correct output
Tie

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 6, in <module>
    lines = args[1].split('\n')
IndexError: list index out of range

Test 2

Verdict:

input
 133 249 194 236  50  75 110 2...

correct output
Uolevi

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 6, in <module>
    lines = args[1].split('\n')
IndexError: list index out of range

Test 3

Verdict:

input
 137  87  55 236 159 239 137 1...

correct output
Maija

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 6, in <module>
    lines = args[1].split('\n')
IndexError: list index out of range

Test 4

Verdict:

input
  555   80  711  842  298  130...

correct output
Tie

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 6, in <module>
    lines = args[1].split('\n')
IndexError: list index out of range

Test 5

Verdict:

input
  968  902  552  181  973  857...

correct output
Maija

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 6, in <module>
    lines = args[1].split('\n')
IndexError: list index out of range

Test 6

Verdict:

input
  229   64  872  833  214  370...

correct output
Uolevi

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 6, in <module>
    lines = args[1].split('\n')
IndexError: list index out of range