Trainer_Marvin @ 2022-11-30 20:25:42
# P5730
num = input()
n = input()
one = ['xxx', '..x', 'xxx', 'xxx',
'x.x', 'xxx', 'x..', 'xxx',
'xxx', 'xxx']
two = ['x.x', '..x', '..x', '..x',
'x.x', 'x..', 'x..', '..x',
'x.x', 'x.x']
tir = ['x.x', '..x', 'xxx', 'xxx',
'xxx', 'xxx', 'xxx', '..x',
'xxx', 'xxx']
fur = ['x.x', '..x', 'x..', '..x',
'..x','..x', 'x.x', '..x',
'x.x', '..x']
fiv = ['xxx', '..x', 'xxx', 'xxx',
'..x', 'xxx', 'xxx', '..x',
'xxx', '..x']
m = [one, two, tir, fur, fiv]
fin = [[] for i in range(0, 5)]
for t in n:
i = int(t)
fin[0].append(m[0][i])
fin[1].append(m[1][i])
fin[2].append(m[2][i])
fin[3].append(m[3][i])
fin[4].append(m[4][i])
for i in fin:
print('.'.join(i))
by Trainer_Marvin @ 2022-11-30 20:34:08
@Trainer_Marvin 语言为python3
by F1nderLoop @ 2022-12-29 08:39:48
没看错的话,你的x应该是小写的。题目要求大写X
by Trainer_Marvin @ 2023-02-01 11:31:28
@F1nderLoop 感谢,但更正后仍RE,x与X的不同应该WA,但我输出了RE
by Trainer_Marvin @ 2023-02-01 11:36:04
@F1nderLoop 做这题时候我是灰名尚无下载测试点权限,但我现在下载第一个测试点后,在本地以及洛谷的在线ide上均能正确输出。但过不了评测机