【python】牛客编程题---汽水瓶

这道题不是说太难了值得写一篇博客来记念,而是做为一个python初学者,经过这道题掌握了python的一个坑。 个人代码以下: while True: num = int(input()) if num != 0: numOfQs = 0 while num // 3: numOfQs += num // 3 num = num//3 + num%3 p
相关文章
相关标签/搜索