| Task: | Fraktaali |
| Sender: | Leiska |
| Submission time: | 2017-10-04 02:49:09 +0300 |
| Language: | Python2 |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | RUNTIME ERROR | 0 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| #4 | RUNTIME ERROR | 0 |
| #5 | RUNTIME ERROR | 0 |
| #6 | RUNTIME ERROR | 0 |
| #7 | RUNTIME ERROR | 0 |
| #8 | RUNTIME ERROR | 0 |
| #9 | RUNTIME ERROR | 0 |
| #10 | RUNTIME ERROR | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | RUNTIME ERROR | 0.05 s | 1 | details |
| #2 | RUNTIME ERROR | 0.06 s | 2 | details |
| #3 | RUNTIME ERROR | 0.06 s | 3 | details |
| #4 | RUNTIME ERROR | 0.06 s | 4 | details |
| #5 | RUNTIME ERROR | 0.05 s | 5 | details |
| #6 | RUNTIME ERROR | 0.06 s | 6 | details |
| #7 | RUNTIME ERROR | 0.06 s | 7 | details |
| #8 | RUNTIME ERROR | 0.06 s | 8 | details |
| #9 | RUNTIME ERROR | 0.05 s | 9 | details |
| #10 | RUNTIME ERROR | 0.05 s | 10 | details |
Code
from __future__ import print_function
import sys
def fractal(x):
if x == 1:
return [[1]]
else:
recur = fractal(x-1)
newarray = [[] for x in range(len(recur)*2)]
for y in range(0,len(recur)):
for x in range(0,len(recur)*2):
newarray[y].append(recur[y][(x % len(recur))])
for y in range(len(recur),(len(recur)*2)):
for x in range(0,(len(recur)*2)):
if(x<len(recur)):
newarray[y].append( recur[y % len(recur)][x] )
else:
newarray[y].append( -(recur[y-len(recur)][(x - len(recur))]) )
return newarray
n = sys.argv[1]
fraktaali = fractal(n)
for y in range(0,len(fraktaali)):
for x in range(0,len(fraktaali)):
if fraktaali[y][x] == 1:
print('#', end='')
else:
print('.', end='')
print('\n', end='')
Test details
Test 1
Group: 1
Verdict: RUNTIME ERROR
| input |
|---|
| 1 |
| correct output |
|---|
| # |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 2
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| 2 |
| correct output |
|---|
| ## #. |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 3
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| 3 |
| correct output |
|---|
| #### #.#. ##.. #..# |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 4
Group: 4
Verdict: RUNTIME ERROR
| input |
|---|
| 4 |
| correct output |
|---|
| ######## #.#.#.#. ##..##.. #..##..# ####.... ... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 5
Group: 5
Verdict: RUNTIME ERROR
| input |
|---|
| 5 |
| correct output |
|---|
| ################ #.#.#.#.#.#.#.#. ##..##..##..##.. #..##..##..##..# ####....####.... ... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 6
Group: 6
Verdict: RUNTIME ERROR
| input |
|---|
| 6 |
| correct output |
|---|
| ##############################... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 7
Group: 7
Verdict: RUNTIME ERROR
| input |
|---|
| 7 |
| correct output |
|---|
| ##############################... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 8
Group: 8
Verdict: RUNTIME ERROR
| input |
|---|
| 8 |
| correct output |
|---|
| ##############################... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 9
Group: 9
Verdict: RUNTIME ERROR
| input |
|---|
| 9 |
| correct output |
|---|
| ##############################... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of rangeTest 10
Group: 10
Verdict: RUNTIME ERROR
| input |
|---|
| 10 |
| correct output |
|---|
| ##############################... |
| user output |
|---|
| (empty) |
Error:
Traceback (most recent call last):
File "input/code.py", line 25, in <module>
n = sys.argv[1]
IndexError: list index out of range