幽灵特工 @ 2021-12-22 11:07:58
为什么RE呀
l=list(input())
n=int(l[0])
t=[[0 for i in range(n+1)] for i in range(n+1)]
a=0
x,y=1,1
for i in range(2,len(l)):
if l[i]==' ':
continue
for j in range(int(l[i])):
t[y][x]+=a
x+=1
if x==n+1:
x=1
y+=1
a=1-a
for i in range(1,n+1):
for j in range(1,n+1):
print(t[i][j],end='')
print('\n',end='')
#print (t)
by Marsk @ 2022-01-12 18:56:11
输入改成 l = list(map(int, input().split())), 后面不要用判断空格