import random
n = 6
s=[0]*n
top =-1
flag=True
for i in range(n):
x= random.randint(1,100)
if flag or top!=-1 and x%2!= s[top] % 2:
top +=1
s[top]=x
flag=not flag
elif top!=-1:
top -=1
print(s[:top+1])
运行该程序段后,输出结果不可能的是( )
A.[88,75,42,85,78,93] | B.[] |
C.[23,92,92,61] | D.[89,87,88,52,45,82] |

同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

