题解 | 牛牛的抽奖游戏
牛牛的抽奖游戏
https://www.nowcoder.com/practice/9c9300f7ecbb41f49c3e8727b4948038
s=3
lst1=[]
while 1:
a=int(input())
if a>=0:lst1.append(a)
else:break
if s in lst1:print("Congratulations!")
else:print("Give up!")
牛牛的抽奖游戏
https://www.nowcoder.com/practice/9c9300f7ecbb41f49c3e8727b4948038
s=3
lst1=[]
while 1:
a=int(input())
if a>=0:lst1.append(a)
else:break
if s in lst1:print("Congratulations!")
else:print("Give up!")
相关推荐
查看16道真题和解析