题解 | #汽水瓶#
汽水瓶
https://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
numList = []
while True:
try:
num = int(input())
numList.append(num)
if num == 0:
break
except:
break
numList.pop()
count = 0
countList = []
for n in numList:
while True:
try:
n -= 2
count += 1
if n == 0 or n == 1:
countList.append(count)
count = 0
break
except:
break
for c in countList:
print(c)
