| Task: | Tulkki |
| Sender: | adex720 |
| Submission time: | 2025-10-31 22:02:09 +0200 |
| Language: | Python3 (CPython3) |
| Status: | READY |
| Result: | 0 |
| subtask | verdict | score |
|---|---|---|
| #1 | RUNTIME ERROR | 0 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| test | verdict | time | subtask | |
|---|---|---|---|---|
| #1 | RUNTIME ERROR | 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 | RUNTIME ERROR | 0.02 s | 1, 2, 3 | details |
| #6 | RUNTIME ERROR | 0.02 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(None):
ind = y.find('#')
if ind == -1:
komennot.append(y)
elif ind > 0:
komennot.append(y.split('#')[0])
koodi = 'exec("A=0\nB=0\nC=0\nD=0\nE=0\nF=0\nG=0\nH=0\nI=0\nJ=0\nK=0\nL=0\nM=0\nN=0\nO=0\nP=0\nQ=0\nR=0\nS=0\nT=0\nU=0\nV=0\nW=0\nX=0\nY=0\nZ=1")'
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 = komennot[i+1][0]
if komennot[i][0] == 'C':
koodi += f'exec("{index}=0")'
elif komennot[i][0] == 'I':
koodi += f'exec("{index}+=1")'
elif komennot[i][0] == 'P':
koodi += f'print({index})'
elif komennot[i][0] == 'R':
koodi += f'for j{i} in range({index}):'
print(koodi)
eval(koodi)Test details
Test 1 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| PRINT X INCREASE X PRINT X INCREASE X PRINT X ... |
| correct output |
|---|
| 0 1 2 0 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 2 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE X # aybabtu PRINT X INCREASE # test ... |
| correct output |
|---|
| 1 3 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 3 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| # Create number 3 INCREASE X INCREASE X INCREASE X ... |
| correct output |
|---|
| 3 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 5 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X ... |
| correct output |
|---|
| 999 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 6 (public)
Subtask: 1, 2, 3
Verdict: RUNTIME ERROR
| 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 11 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 20 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 12 (public)
Subtask: 2, 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE B INCREASE B ... |
| correct output |
|---|
| 42 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 14 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| # Create number 3 INCREASE A INCREASE A INCREASE... |
| correct output |
|---|
| 12 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 15 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE X INCREASE X INCREASE X INCREASE X INCREASE X ... |
| correct output |
|---|
| 531441 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 16 (public)
Subtask: 3
Verdict: RUNTIME ERROR
| input |
|---|
| INCREASE A INCREASE A INCREASE A INCREASE A INCREASE A ... |
| correct output |
|---|
| 1337 |
| user output |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)Test 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 |
|---|
| exec("A=0 B=0 C=0 D=0 E=0 ... |
Error:
Traceback (most recent call last):
File "/box/input/code.py", line 42, in <module>
eval(koodi)
File "<string>", line 1
exec("A=0
^
SyntaxError: unterminated string literal (detected at line 1)