Task: | Fraktaali |
Sender: | muhk3l1 |
Submission time: | 2017-10-14 12:24:42 +0300 |
Language: | Python2 |
Status: | READY |
Result: | 70 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 10 |
#2 | ACCEPTED | 10 |
#3 | ACCEPTED | 10 |
#4 | ACCEPTED | 10 |
#5 | ACCEPTED | 10 |
#6 | ACCEPTED | 10 |
#7 | ACCEPTED | 10 |
#8 | WRONG ANSWER | 0 |
#9 | WRONG ANSWER | 0 |
#10 | WRONG ANSWER | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.06 s | 1 | details |
#2 | ACCEPTED | 0.06 s | 2 | details |
#3 | ACCEPTED | 0.07 s | 3 | details |
#4 | ACCEPTED | 0.07 s | 4 | details |
#5 | ACCEPTED | 0.06 s | 5 | details |
#6 | ACCEPTED | 0.06 s | 6 | details |
#7 | ACCEPTED | 0.09 s | 7 | details |
#8 | WRONG ANSWER | 0.06 s | 8 | details |
#9 | WRONG ANSWER | 0.07 s | 9 | details |
#10 | WRONG ANSWER | 0.06 s | 10 | details |
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: WRONG ANSWER
input |
---|
8 |
correct output |
---|
##############################... |
user output |
---|
##############################... |
Test 9
Group: 9
Verdict: WRONG ANSWER
input |
---|
9 |
correct output |
---|
##############################... |
user output |
---|
(empty) |
Test 10
Group: 10
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
##############################... |
user output |
---|
(empty) |