CSES - Datatähti 2018 alku - Results
Submission details
Task:Fraktaali
Sender:Uolevi
Submission time:2017-10-05 13:52:05 +0300
Language:Python3
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
#30
#40
#50
#60
#70
#80
#90
#100
Test results
testverdicttimegroup
#10.09 s1details
#20.06 s2details
#30.11 s3details
#40.09 s4details
#50.09 s5details
#60.07 s6details
#70.09 s7details
#80.10 s8details
#90.08 s9details
#100.08 s10details

Code

array = [["#"]]
def funct(array):
    array2 = []
    for i in array:
        if i == "#":
            array2.append(".")
        elif i == ".":
            array2.append("#")
    array2 = "".join(array2)
    return array2
for q in range(1,10):
    array.append([])
    for i in array[-2]:
        string = str(i*2)
        array[-1].append(string)
    for i in array[-2]:
        string = str(i+funct(i))
        array[-1].append(string)

for i in range(0,10):
    inputti = int(input(""))
    for j in array[inputti-1]:
        print(j)

Test details

Test 1

Group: 1

Verdict:

input
1

correct output
#

user output
#

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 2

Group: 2

Verdict:

input
2

correct output
##
#.

user output
##
#.

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 3

Group: 3

Verdict:

input
3

correct output
####
#.#.
##..
#..#

user output
####
#.#.
##..
#..#

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 4

Group: 4

Verdict:

input
4

correct output
########
#.#.#.#.
##..##..
#..##..#
####....
...

user output
########
#.#.#.#.
##..##..
#..##..#
####....
...

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 5

Group: 5

Verdict:

input
5

correct output
################
#.#.#.#.#.#.#.#.
##..##..##..##..
#..##..##..##..#
####....####....
...

user output
################
#.#.#.#.#.#.#.#.
##..##..##..##..
#..##..##..##..#
####....####....
...

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 6

Group: 6

Verdict:

input
6

correct output
##############################...

user output
##############################...

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 7

Group: 7

Verdict:

input
7

correct output
##############################...

user output
##############################...

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 8

Group: 8

Verdict:

input
8

correct output
##############################...

user output
##############################...

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 9

Group: 9

Verdict:

input
9

correct output
##############################...

user output
##############################...

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line

Test 10

Group: 10

Verdict:

input
10

correct output
##############################...

user output
##############################...

Error:
Traceback (most recent call last):
  File "input/code.py", line 21, in <module>
    inputti = int(input(""))
EOFError: EOF when reading a line