21 lines
322 B
Python
21 lines
322 B
Python
|
from sys import stdout as out
|
||
|
|
||
|
p = {}
|
||
|
for i in range(1,91):
|
||
|
p[i] = 0
|
||
|
|
||
|
for i in range(2,91):
|
||
|
n = i
|
||
|
while n <= 90:
|
||
|
p[n]+=1
|
||
|
n += i
|
||
|
|
||
|
for i in range(9):
|
||
|
for j in range(10):
|
||
|
if p[i*10+j+1] % 2 == 0:
|
||
|
out.write("o")
|
||
|
else:
|
||
|
out.write(" ")
|
||
|
out.write("\n")
|
||
|
|