Code Submission Evaluation System Login

Datatähti 2018 alku

Start:2017-10-02 00:00:00
End:2017-10-16 00:00:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - Datatähti 2018 alku - Results
History
2017-10-11 11:12:30100
2017-10-11 10:01:1510
Task:Fraktaali
Sender:_Serinaz_
Submission time:2017-10-11 11:12:30
Language:Python3
Status:READY
Score:100

Feedback

groupverdictscore
#1ACCEPTED10
#2ACCEPTED10
#3ACCEPTED10
#4ACCEPTED10
#5ACCEPTED10
#6ACCEPTED10
#7ACCEPTED10
#8ACCEPTED10
#9ACCEPTED10
#10ACCEPTED10

Test results

testverdicttime (s)group
#1ACCEPTED0.11 / 1.001details
#2ACCEPTED0.10 / 1.002details
#3ACCEPTED0.12 / 1.003details
#4ACCEPTED0.13 / 1.004details
#5ACCEPTED0.09 / 1.005details
#6ACCEPTED0.09 / 1.006details
#7ACCEPTED0.11 / 1.007details
#8ACCEPTED0.11 / 1.008details
#9ACCEPTED0.10 / 1.009details
#10ACCEPTED0.14 / 1.0010details

Code

#valkearuutu "."
#mustaruutu "#" 



def transform(lista):
	jono = list(lista) #changes string to list
	for i in range(0, len(jono)):
		if jono[i] == "#":
			jono[i] = "."
		elif jono[i] == ".":
			jono[i] = "#"

	return ("".join(str(x) for x in jono)) # returns list changes to string

taulukko = ["#"]
taulukko2 = []
taulukko3 = [0,0,0,0]
taulukko4 = []
taulukko5 = []
taulukko6 = []
taulukko7 = []
taulukko8 = []
taulukko9 = []
taulukko10 = []


taulukko2.append( 2*taulukko[0])
taulukko2.append(taulukko[0] + transform(taulukko[0]))

taulukko3[0] = 2*taulukko2[0]
taulukko3[1] = taulukko2[1]*2
taulukko3[2] = taulukko2[0] + transform(taulukko2[0])
taulukko3[3] = taulukko2[1] + transform(taulukko2[1])

for i in range(len(taulukko3)):
	taulukko4.append(taulukko3[i]*2)
for i in range(len(taulukko3)):
	taulukko4.append(taulukko3[i] + transform(taulukko3[i]))


for i in range(len(taulukko4)): #taulukko5
	taulukko5.append(taulukko4[i]*2)
for i in range(len(taulukko4)):
	taulukko5.append(taulukko4[i] + transform(taulukko4[i]))

for i in range(len(taulukko5)):
	taulukko6.append(taulukko5[i]*2) #taulukko6
for i in range(len(taulukko5)):
	taulukko6.append(taulukko5[i] + transform(taulukko5[i]))

for i in range(len(taulukko6)):
	taulukko7.append(taulukko6[i]*2) #taulukko7
for i in range(len(taulukko6)):
	taulukko7.append(taulukko6[i] + transform(taulukko6[i]))

for i in range(len(taulukko7)):
	taulukko8.append(taulukko7[i]*2) #taulukko8
for i in range(len(taulukko7)):
	taulukko8.append(taulukko7[i] + transform(taulukko7[i]))

for i in range(len(taulukko8)):
	taulukko9.append(taulukko8[i]*2) #taulukko9
for i in range(len(taulukko8)):
	taulukko9.append(taulukko8[i] + transform(taulukko8[i]))

for i in range(len(taulukko9)):
	taulukko10.append(taulukko9[i]*2) #taulukko10
for i in range(len(taulukko9)):
	taulukko10.append(taulukko9[i] + transform(taulukko9[i]))





n = input()

square = []

if n == "1":
	square = taulukko
elif n=="2":
	square = taulukko2

elif n == "3":
	square = taulukko3

elif n == "4":
	square = taulukko4

elif n == "5":
	square = taulukko5

elif n=="6":
	square = taulukko6
elif n=="7":
	square = taulukko7
elif n =="8":
	square = taulukko8
elif n=="9":
	square = taulukko9

elif n == "10":
	square = taulukko10



for var in square:
	print(var) 








			

Test details

Test 1

Group: 1

Verdict: ACCEPTED

input
1
view   save

correct output
#
view   save

user output
#
view   save

Test 2

Group: 2

Verdict: ACCEPTED

input
2
view   save

correct output
##
#.
view   save

user output
##
#.
view   save

Test 3

Group: 3

Verdict: ACCEPTED

input
3
view   save

correct output
####
#.#.
##..
#..#
view   save

user output
####
#.#.
##..
#..#
view   save

Test 4

Group: 4

Verdict: ACCEPTED

input
4
view   save

correct output
########
#.#.#.#.
##..##..
#..##..#
####....
#.#..#.#
##....##
#..#.##.
view   save

user output
########
#.#.#.#.
##..##..
#..##..#
####....
#.#..#.#
##....##
#..#.##.
view   save

Test 5

Group: 5

Verdict: ACCEPTED

input
5
view   save

correct output
################
#.#.#.#.#.#.#.#.
##..##..##..##..
#..##..##..##..#
####....####....
#.#..#.##.#..#.#
##....####....##
#..#.##.#..#.##.
########........
#.#.#.#..#.#.#.#
##..##....##..##
#..##..#.##..##.
####........####
#.#..#.#.#.##.#.
##....##..####..
#..#.##..##.#..#
view   save

user output
################
#.#.#.#.#.#.#.#.
##..##..##..##..
#..##..##..##..#
####....####....
#.#..#.##.#..#.#
##....####....##
#..#.##.#..#.##.
########........
#.#.#.#..#.#.#.#
##..##....##..##
#..##..#.##..##.
####........####
#.#..#.#.#.##.#.
##....##..####..
#..#.##..##.#..#
view   save

Test 6

Group: 6

Verdict: ACCEPTED

input
6
view   save

correct output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
####....####....####....####.....
#.#..#.##.#..#.##.#..#.##.#..#...
##....####....####....####.......
#..#.##.#..#.##.#..#.##.#..#.#...
########........########.........
#.#.#.#..#.#.#.##.#.#.#..#.#.#...
##..##....##..####..##....##.....
#..##..#.##..##.#..##..#.##..#...
####........########........##...
#.#..#.#.#.##.#.#.#..#.#.#.##....
##....##..####..##....##..####...
#..#.##..##.#..##..#.##..##.#....
################.................
#.#.#.#.#.#.#.#..#.#.#.#.#.#.#...
##..##..##..##....##..##..##.....
#..##..##..##..#.##..##..##..#...
...
view   save

user output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
####....####....####....####.....
#.#..#.##.#..#.##.#..#.##.#..#...
##....####....####....####.......
#..#.##.#..#.##.#..#.##.#..#.#...
########........########.........
#.#.#.#..#.#.#.##.#.#.#..#.#.#...
##..##....##..####..##....##.....
#..##..#.##..##.#..##..#.##..#...
####........########........##...
#.#..#.#.#.##.#.#.#..#.#.#.##....
##....##..####..##....##..####...
#..#.##..##.#..##..#.##..##.#....
################.................
#.#.#.#.#.#.#.#..#.#.#.#.#.#.#...
##..##..##..##....##..##..##.....
#..##..##..##..#.##..##..##..#...
...
view   save

Test 7

Group: 7

Verdict: ACCEPTED

input
7
view   save

correct output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
####....####....####....####.....
#.#..#.##.#..#.##.#..#.##.#..#...
##....####....####....####.......
#..#.##.#..#.##.#..#.##.#..#.#...
########........########.........
#.#.#.#..#.#.#.##.#.#.#..#.#.#...
##..##....##..####..##....##.....
#..##..#.##..##.#..##..#.##..#...
####........########........##...
#.#..#.#.#.##.#.#.#..#.#.#.##....
##....##..####..##....##..####...
#..#.##..##.#..##..#.##..
view   save

user output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
####....####....####....####.....
#.#..#.##.#..#.##.#..#.##.#..#...
##....####....####....####.......
#..#.##.#..#.##.#..#.##.#..#.#...
########........########.........
#.#.#.#..#.#.#.##.#.#.#..#.#.#...
##..##....##..####..##....##.....
#..##..#.##..##.#..##..#.##..#...
####........########........##...
#.#..#.#.#.##.#.#.#..#.#.#.##....
##....##..####..##....##..####...
#..#.##..##.#..##..#.##..
view   save

Test 8

Group: 8

Verdict: ACCEPTED

input
8
view   save

correct output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
####....####....####....####.....
#.#..#.##.#..#.##.#..#.##.#..#...
##....####....####....####.......
#..#.##.#..#.##.#..#.##.#..#.#...
view   save

user output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
####....####....####....####.....
#.#..#.##.#..#.##.#..#.##.#..#...
##....####....####....####.......
#..#.##.#..#.##.#..#.##.#..#.#...
view   save

Test 9

Group: 9

Verdict: ACCEPTED

input
9
view   save

correct output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
view   save

user output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
##..##..##..##..##..##..##..##...
#..##..##..##..##..##..##..##....
view   save

Test 10

Group: 10

Verdict: ACCEPTED

input
10
view   save

correct output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
view   save

user output
##############################...
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#....
view   save