| Task: | Tulkki |
| Sender: | adex720 |
| Submission time: | 2025-10-31 22:11:52 +0200 |
| Language: | Python3 (CPython3) |
| Status: | READY |
| Result: | 0 |
| subtask | verdict | score |
|---|---|---|
| #1 | WRONG ANSWER | 0 |
| #2 | WRONG ANSWER | 0 |
| #3 | WRONG ANSWER | 0 |
| test | verdict | time | subtask | |
|---|---|---|---|---|
| #1 | WRONG ANSWER | 0.02 s | 1, 2, 3 | details |
| #2 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #3 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #4 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #5 | WRONG ANSWER | 0.03 s | 1, 2, 3 | details |
| #6 | WRONG ANSWER | 0.03 s | 1, 2, 3 | details |
| #7 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #8 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #9 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #10 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #11 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #12 | RUNTIME ERROR | 0.02 s | 2, 3 | details |
| #13 | RUNTIME ERROR | 0.02 s | 3 | details |
| #14 | RUNTIME ERROR | 0.02 s | 3 | details |
| #15 | RUNTIME ERROR | 0.02 s | 3 | details |
| #16 | RUNTIME ERROR | 0.02 s | 3 | details |
| #17 | RUNTIME ERROR | 0.02 s | 3 | details |
| #18 | RUNTIME ERROR | 0.02 s | 3 | details |
Code
import sys
komennot = []
for x in sys.stdin:
for y in x.split(' '):
if len(y) == 0:
continue
ind = y.find('#')
if ind == -1:
komennot.append(y)
elif ind > 0:
komennot.append(y.split('#')[0])
arvot=[0]*27
koodi = ""
sisennys = 0
komennot.append('X')
i = -1
n = len(komennot) - 2
while i < n:
i+=1
if komennot[i] == '(':
sisennys+=1
continue
if komennot[i] == ')':
sisennys-=1
continue
koodi += '\n' + ' ' * sisennys
index = ord(komennot[i+1][0]) - ord('A')
if komennot[i][0] == 'C':
koodi += f'arvot[{index}]=0'
elif komennot[i][0] == 'I':
koodi += f'arvot[{index}]+=1'
elif komennot[i][0] == 'P':
koodi += f'print(arvot[{index}])'
elif komennot[i][0] == 'R':
koodi += f'for j{i} in range(arvot[{index}]):'
print(komennot)
print(koodi)
exec(koodi)Test details
Test 1 (public)
Subtask: 1, 2, 3
Verdict: WRONG ANSWER
| input |
|---|
| PRINT X INCREASE X PRINT X INCREASE X PRINT X ... |
| correct output |
|---|
| 0 1 2 0 |
| user output |
|---|
| ['PRINT', 'X\n', 'INCREASE', '... |
Feedback: Output is longer than expected
Test 2 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE X # aybabtu PRINT X INCREASE # test ... |
| correct output |
|---|
| 1 3 |
| user output |
|---|
| ['INCREASE\n', 'X\n', 'aybabtu... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 7, in <module>
IndexError: list index out of rangeTest 3 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| # Create number 3 INCREASE X INCREASE X INCREASE X ... |
| correct output |
|---|
| 3 |
| user output |
|---|
| ['Create', 'number', '3\n', 'I... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 2, in <module>
IndexError: list assignment index out of rangeTest 4 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A PRINT A INCREASE B PRINT B INCREASE C ... |
| correct output |
|---|
| 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... |
| user output |
|---|
| ['INCREASE', 'A\n', 'PRINT', '... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 72
print(arvot[17])
^
IndentationError: expected an indented block after 'for' statement on line 71Test 5 (public)
Subtask: 1, 2, 3
Verdict: WRONG ANSWER
| input |
|---|
| INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X ... |
| correct output |
|---|
| 999 |
| user output |
|---|
| ['INCREASE', 'X\n', 'INCREASE'... |
Feedback: Output is longer than expected
Test 6 (public)
Subtask: 1, 2, 3
Verdict: WRONG ANSWER
| input |
|---|
| PRINT X PRINT X PRINT X PRINT X PRINT X ... |
| correct output |
|---|
| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... |
| user output |
|---|
| ['PRINT', 'X\n', 'PRINT', 'X\n... |
Feedback: Output is longer than expected
Test 7 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 5 5 5 5 5 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 17
print(arvot[0])
^
IndentationError: expected an indented block after 'for' statement on line 13Test 8 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 0 0 0 0 0 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 17
arvot[0]=0
^
IndentationError: expected an indented block after 'for' statement on line 13Test 9 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 6 7 8 9 10 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 17
arvot[0]+=1
^
IndentationError: expected an indented block after 'for' statement on line 13Test 10 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 5 5 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 17
arvot[1]+=1
^
IndentationError: expected an indented block after 'for' statement on line 13Test 11 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 20 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 17
arvot[0]+=1
^
IndentationError: expected an indented block after 'for' statement on line 13Test 12 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE B INCREASE B ... |
| correct output |
|---|
| 42 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 18
arvot[0]+=1
^
IndentationError: expected an indented block after 'for' statement on line 14Test 13 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 17
arvot[1]+=1
^
IndentationError: expected an indented block after 'for' statement on line 13Test 14 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| # Create number 3 INCREASE A INCREASE A INCREASE... |
| correct output |
|---|
| 12 |
| user output |
|---|
| ['Create', 'number', '3\n', 'I... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 2, in <module>
IndexError: list assignment index out of rangeTest 15 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X ... |
| correct output |
|---|
| 531441 |
| user output |
|---|
| ['INCREASE', 'X\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 25
for j23 in range(arvot[23]):
^
IndentationError: expected an indented block after 'for' statement on line 21Test 16 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 1337 |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 32
for j30 in range(arvot[1]):
^
IndentationError: expected an indented block after 'for' statement on line 28Test 17 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A REPEAT A TIMES ( REPEAT A TIMES ( ... |
| correct output |
|---|
| 1 2 1 2 1 1 3 4 3 4 3 4 3 4 3 ... |
| user output |
|---|
| ['INCREASE', 'A\n', 'INCREASE'... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 11
for j9 in range(arvot[0]):
^
IndentationError: expected an indented block after 'for' statement on line 7Test 18 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| # Efficient algorithm for find... |
| correct output |
|---|
| 2 3 5 7 11 13 17 19 23 29 31 3... |
| user output |
|---|
| ['Efficient', 'algorithm', 'fo... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 46, in <module>
exec(koodi)
File "<string>", line 20
arvot[23]+=1
^
IndentationError: expected an indented block after 'for' statement on line 16