解题思路:
注意事项:
参考代码:
n,m=map(int,input().strip().split())
l = [0 for i in range(n)]
for i in range(2,m+1,1): # 人
for j in range(2,n+1,1): # 灯
if j % i == 0:
l[j-1] += 1
t = []
for i in range(n):
if(l[i]%2 == 0):
t.append(i+1)
print(",".join(str(i) for i in t))
0.0分
0 人评分