CSES - Datatähti 2018 alku - Results
Submission details
Task:Fraktaali
Sender:muhk3l1
Submission time:2017-10-14 12:21:36 +0300
Language:Python2
Status:READY
Result:70
Feedback
groupverdictscore
#1ACCEPTED10
#2ACCEPTED10
#3ACCEPTED10
#4ACCEPTED10
#5ACCEPTED10
#6ACCEPTED10
#7ACCEPTED10
#80
#90
#100
Test results
testverdicttimegroup
#1ACCEPTED0.06 s1details
#2ACCEPTED0.09 s2details
#3ACCEPTED0.08 s3details
#4ACCEPTED0.06 s4details
#5ACCEPTED0.07 s5details
#6ACCEPTED0.07 s6details
#7ACCEPTED0.08 s7details
#80.07 s8details
#90.05 s9details
#100.07 s10details

Code

a = "########"
b = "#.#.#.#."
c = "##..##.."
d = "#..##..#"
e = "####...."
f = "#.#..#.#"
g = "##....##"
h = "#..#.##."


q = "........"
r = ".#.#.#.#"
s = "..##..##"
t = ".##..##."
u = "....####"
v = ".#.##.#."
w = "..####.."
z = ".##.#..#"




Fraktaali = raw_input("")
if Fraktaali == "4":
    print "########"
    print "#.#.#.#."
    print "##..##.."
    print "#..##..#"
    print "####...."
    print "#.#..#.#"
    print "##....##"
    print "#..#.##."

elif Fraktaali == "1":
    print "#"

elif Fraktaali == "2":
    print "##"
    print "#."

elif Fraktaali == "3":
   print "####"  
   print "#.#."
   print "##.."
   print "#..#"
elif Fraktaali == "5":
    print 2*a
    print 2*b
    print 2*c
    print 2*d
    print 2*e
    print 2*f
    print 2*g
    print 2*h
    print a + "........"
    print b + ".#.#.#.#"
    print c + "..##..##"
    print d + ".##..##."
    print e + "....####"
    print f + ".#.##.#."
    print g + "..####.."
    print h + ".##.#..#"

elif Fraktaali == "6":
    print 2*a*2
    print 2*b*2
    print 2*c*2
    print 2*d*2
    print 2*e*2
    print 2*f*2
    print 2*g*2
    print 2*h*2
    print 2*(a+"........")
    print 2*(b+".#.#.#.#")
    print 2*(c+"..##..##")
    print 2*(d+".##..##.")
    print 2*(e+"....####")
    print 2*(f+".#.##.#.")
    print 2*(g+"..####..")
    print 2*(h+".##.#..#")
    print 2*a+2*q
    print 2*b+2*r
    print 2*c+2*s
    print 2*d+2*t
    print 2*e+2*u
    print 2*f+2*v
    print 2*g+2*w
    print 2*h+2*z
    print a + "........" + "........" +a
    print b + ".#.#.#.#" + ".#.#.#.#" +b
    print c + "..##..##" + "..##..##" +c
    print d + ".##..##." + ".##..##." +d
    print e + "....####" + "....####" +e
    print f + ".#.##.#." + ".#.##.#." +f
    print g + "..####.." + "..####.." +g
    print h + ".##.#..#" + ".##.#..#" +h

elif Fraktaali == "7":
    print 2*a*2*2
    print 2*b*2*2
    print 2*c*2*2
    print 2*d*2*2
    print 2*e*2*2
    print 2*f*2*2
    print 2*g*2*2
    print 2*h*2*2
    print 2*(a+"........")*2
    print 2*(b+".#.#.#.#")*2
    print 2*(c+"..##..##")*2
    print 2*(d+".##..##.")*2
    print 2*(e+"....####")*2
    print 2*(f+".#.##.#.")*2
    print 2*(g+"..####..")*2
    print 2*(h+".##.#..#")*2
    print (2*a+2*q)*2
    print (2*b+2*r)*2
    print (2*c+2*s)*2
    print (2*d+2*t)*2
    print (2*e+2*u)*2
    print (2*f+2*v)*2
    print (2*g+2*w)*2
    print (2*h+2*z)*2
    print (a + "........" + "........" +a)*2
    print (b + ".#.#.#.#" + ".#.#.#.#" +b)*2
    print (c + "..##..##" + "..##..##" +c)*2
    print (d + ".##..##." + ".##..##." +d)*2
    print (e + "....####" + "....####" +e)*2
    print (f + ".#.##.#." + ".#.##.#." +f)*2
    print (g + "..####.." + "..####.." +g)*2
    print (h + ".##.#..#" + ".##.#..#" +h)*2
    print 2*a*2+4*q
    print 2*b*2+4*r
    print 2*c*2+4*s
    print 2*d*2+4*t
    print 2*e*2+4*u
    print 2*f*2+4*v
    print 2*g*2+4*w
    print 2*h*2+4*z
    print 2*(a+"........")+q+a+q+a
    print 2*(b+".#.#.#.#")+r+b+r+b
    print 2*(c+"..##..##")+s+c+s+c
    print 2*(d+".##..##.")+t+d+t+d
    print 2*(e+"....####")+u+e+u+e
    print 2*(f+".#.##.#.")+v+f+v+f
    print 2*(g+"..####..")+w+g+w+g
    print 2*(h+".##.#..#")+z+h+z+h
    print 2*a+2*q+2*q+2*a
    print 2*b+2*r+2*r+2*b
    print 2*c+2*s+2*s+2*c
    print 2*d+2*t+2*t+2*d
    print 2*e+2*u+2*u+2*e
    print 2*f+2*v+2*v+2*f
    print 2*g+2*w+2*w+2*g
    print 2*h+2*z+2*z+2*h
    print a + "........" + "........" +a+q+2*a+q
    print b + ".#.#.#.#" + ".#.#.#.#" +b+r+2*b+r
    print c + "..##..##" + "..##..##" +c+s+2*c+s
    print d + ".##..##." + ".##..##." +d+t+2*d+t
    print e + "....####" + "....####" +e+u+2*e+u
    print f + ".#.##.#." + ".#.##.#." +f+v+2*f+v
    print g + "..####.." + "..####.." +g+w+2*g+w
    print h + ".##.#..#" + ".##.#..#" +h+z+2*h+z

elif Fraktaali == "8":
    print 2*a*2*2*2
    print 2*b*2*2*2
    print 2*c*2*2*2
    print 2*d*2*2*2
    print 2*e*2*2*2
    print 2*f*2*2*2
    print 2*g*2*2*2
    print 2*h*2*2*2
    print (2*(a+"........")*2)*2
    print (2*(b+".#.#.#.#")*2)*2
    print (2*(c+"..##..##")*2)*2
    print (2*(d+".##..##.")*2)*2
    print (2*(e+"....####")*2)*2
    print (2*(f+".#.##.#.")*2)*2
    print (2*(g+"..####..")*2)*2
    print (2*(h+".##.#..#")*2)*2
    print ((2*a+2*q)*2)*2
    print ((2*b+2*r)*2)*2
    print ((2*c+2*s)*2)*2
    print ((2*d+2*t)*2)*2
    print ((2*e+2*u)*2)*2
    print ((2*f+2*v)*2)*2
    print ((2*g+2*w)*2)*2
    print ((2*h+2*z)*2)*2
    print ((a + "........" + "........" +a)*2)*2
    print ((b + ".#.#.#.#" + ".#.#.#.#" +b)*2)*2
    print ((c + "..##..##" + "..##..##" +c)*2)*2
    print ((d + ".##..##." + ".##..##." +d)*2)*2
    print ((e + "....####" + "....####" +e)*2)*2
    print ((f + ".#.##.#." + ".#.##.#." +f)*2)*2
    print ((g + "..####.." + "..####.." +g)*2)*2
    print ((h + ".##.#..#" + ".##.#..#" +h)*2)*2
    print (2*a*2+4*q)*2
    print (2*b*2+4*r)*2
    print (2*c*2+4*s)*2
    print (2*d*2+4*t)*2
    print (2*e*2+4*u)*2
    print (2*f*2+4*v)*2
    print (2*g*2+4*w)*2
    print (2*h*2+4*z)*2
    print (2*(a+"........")+q+a+q+a)*2
    print (2*(b+".#.#.#.#")+r+b+r+b)*2
    print (2*(c+"..##..##")+s+c+s+c)*2
    print (2*(d+".##..##.")+t+d+t+d)*2
    print (2*(e+"....####")+u+e+u+e)*2
    print (2*(f+".#.##.#.")+v+f+v+f)*2
    print (2*(g+"..####..")+w+g+w+g)*2
    print (2*(h+".##.#..#")+z+h+z+h)*2
    print (2*a+2*q+2*q+2*a)*2
    print (2*b+2*r+2*r+2*b)*2
    print (2*c+2*s+2*s+2*c)*2
    print (2*d+2*t+2*t+2*d)*2
    print (2*e+2*u+2*u+2*e)*2
    print (2*f+2*v+2*v+2*f)*2
    print (2*g+2*w+2*w+2*g)*2
    print (2*h+2*z+2*z+2*h)*2
    print (a + "........" + "........" +a+q+2*a+q)*2
    print (b + ".#.#.#.#" + ".#.#.#.#" +b+r+2*b+r)*2
    print (c + "..##..##" + "..##..##" +c+s+2*c+s)*2
    print (d + ".##..##." + ".##..##." +d+t+2*d+t)*2
    print (e + "....####" + "....####" +e+u+2*e+u)*2
    print (f + ".#.##.#." + ".#.##.#." +f+v+2*f+v)*2
    print (g + "..####.." + "..####.." +g+w+2*g+w)*2
    print (h + ".##.#..#" + ".##.#..#" +h+z+2*h+z)*2
    print 2*a*2*2+8*q
    print 2*b*2*2+8*r
    print 2*c*2*2+8*s
    print 2*d*2*2+8*t
    print 2*e*2*2+8*u
    print 2*f*2*2+8*v
    print 2*g*2*2+8*w
    print 2*h*2*2+8*z
    print 2*(a+"........")*2+4*(q+a)
    print 2*(b+".#.#.#.#")*2+4*(r+b)
    print 2*(c+"..##..##")*2+4*(s+c)
    print 2*(d+".##..##.")*2+4*(t+d)
    print 2*(e+"....####")*2+4*(u+e)
    print 2*(f+".#.##.#.")*2+4*(v+f)
    print 2*(g+"..####..")*2+4*(w+g)
    print 2*(h+".##.#..#")*2+4*(z+h)
    print (2*a+2*q)*2+2*(2*q+2*a)
    print (2*b+2*r)*2+2*(2*r+2*b)
    print (2*c+2*s)*2+2*(2*s+2*c)
    print (2*d+2*t)*2+2*(2*t+2*d)
    print (2*e+2*u)*2+2*(2*u+2*e)
    print (2*f+2*v)*2+2*(2*v+2*f)
    print (2*g+2*w)*2+2*(2*w+2*g)
    print (2*h+2*z)*2+2*(2*z+2*h)
    print (a + "........" + "........" +a)*2+2*(q+2*a+q)
    print (b + ".#.#.#.#" + ".#.#.#.#" +b)*2+2*(r+2*b+r)
    print (c + "..##..##" + "..##..##" +c)*2+2*(s+2*c+s)
    print (d + ".##..##." + ".##..##." +d)*2+2*(t+2*d+t)
    print (e + "....####" + "....####" +e)*2+2*(u+2*e+u)
    print (f + ".#.##.#." + ".#.##.#." +f)*2+2*(v+2*f+v)
    print (g + "..####.." + "..####.." +g)*2+2*(w+2*g+w)
    print (h + ".##.#..#" + ".##.#..#" +h)*2+2*(z+2*g+z)
    print 2*a*2+4*q+4*q+4*a
    print 2*b*2+4*r+4*r+4*b
    print 2*c*2+4*s+4*s+4*c
    print 2*d*2+4*t+4*t+4*d
    print 2*e*2+4*u+4*u+4*e
    print 2*f*2+4*v+4*v+4*f
    print 2*g*2+4*w+4*w+4*g
    print 2*h*2+4*z+4*z+4*h
    print 2*(a+"........")+q+a+q+a+2*(q+a)+2*(a+q)
    print 2*(b+".#.#.#.#")+r+b+r+b+2*(r+b)+2*(b+r)
    print 2*(c+"..##..##")+s+c+s+c+2*(s+c)+2*(c+s)
    print 2*(d+".##..##.")+t+d+t+d+2*(t+d)+2*(d+t)
    print 2*(e+"....####")+u+e+u+e+2*(u+e)+2*(e+u)
    print 2*(f+".#.##.#.")+v+f+v+f+2*(v+f)+2*(f+v)
    print 2*(g+"..####..")+w+g+w+g+2*(w+g)+2*(g+w)
    print 2*(h+".##.#..#")+z+h+z+h+2*(z+h)+2*(h+z)
    print 2*a+2*q+2*q+2*a+2*q+4*a+2*q
    print 2*b+2*r+2*r+2*b+2*r+4*b+2*r
    print 2*c+2*s+2*s+2*c+2*s+4*c+2*s
    print 2*d+2*t+2*t+2*d+2*t+4*d+2*t
    print 2*e+2*u+2*u+2*e+2*u+4*e+2*u
    print 2*f+2*v+2*v+2*f+2*v+4*f+2*v
    print 2*g+2*w+2*w+2*g+2*w+4*g+2*w
    print 2*h+2*z+2*z+2*h+2*z+4*h+2*z
    print a + "........" + "........" +a+q+2*a+q+q+2*a+q+a+2*q+a
    print b + ".#.#.#.#" + ".#.#.#.#" +b+r+2*b+r+r+2*b+r+b+2*r+b
    print c + "..##..##" + "..##..##" +c+s+2*c+s+s+2*c+s+c+2*s+c
    print d + ".##..##." + ".##..##." +d+t+2*d+t+t+2*d+t+d+2*t+d
    print e + "....####" + "....####" +e+u+2*e+u+u+2*e+u+e+2*u+e
    print f + ".#.##.#." + ".#.##.#." +f+v+2*f+v+v+2*f+v+f+2*v+f
    print g + "..####.." + "..####.." +g+w+2*g+w+w+2*g+w+g+2*w+g
    print h + ".##.#..#" + ".##.#..#" +h+z+2*h+z+z+2*h+z+h+2*z+h
    

 

Test details

Test 1

Group: 1

Verdict: ACCEPTED

input
1

correct output
#

user output
#

Test 2

Group: 2

Verdict: ACCEPTED

input
2

correct output
##
#.

user output
##
#.

Test 3

Group: 3

Verdict: ACCEPTED

input
3

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

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

Test 4

Group: 4

Verdict: ACCEPTED

input
4

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

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

Test 5

Group: 5

Verdict: ACCEPTED

input
5

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

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

Test 6

Group: 6

Verdict: ACCEPTED

input
6

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

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

Test 7

Group: 7

Verdict: ACCEPTED

input
7

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

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

Test 8

Group: 8

Verdict:

input
8

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

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

Test 9

Group: 9

Verdict:

input
9

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

user output
(empty)

Test 10

Group: 10

Verdict:

input
10

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

user output
(empty)