题解 | 牛牛的抽奖游戏

牛牛的抽奖游戏

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!")

全部评论

相关推荐

04-21 16:05
已编辑
山西大学 Java
不吃压力👿:我和你简历差不多,好多看到28就不回复了,回复的基本是全栈或低代码
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务