题解 | #汽水瓶#
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
只需要把问题转化为数学公式的问题,迎刃而解。while 1: try: num = int(input()) if num == 1: print("0") elif num == 0: break else: print(num//2) except: break
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
只需要把问题转化为数学公式的问题,迎刃而解。while 1: try: num = int(input()) if num == 1: print("0") elif num == 0: break else: print(num//2) except: break
相关推荐