跟奥巴马一起编程
side,x = input().split()
def sswr (a):
if a-int(a)>=0.5:
return int(a+1)
else:
return int(a)
s = sswr(float(side)/2)
for i in range(s):
if i == 0 or i == s-1:
print(int(side)*x)
else:
print(x+' '*(int(side)-2)+x)
跟奥巴马一起编程
side,x = input().split()
def sswr (a):
if a-int(a)>=0.5:
return int(a+1)
else:
return int(a)
s = sswr(float(side)/2)
for i in range(s):
if i == 0 or i == s-1:
print(int(side)*x)
else:
print(x+' '*(int(side)-2)+x)