题解 | #汽水瓶#
汽水瓶
https://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include <iostream> using std::cout; using std::endl; using std::cin; int max_cola(const int& num) { return num / 2 ; } int main(void) { int number; while (cin >> number) { if (number != 0) { cout << max_cola(number) << endl; } } return 0; }