题解 | #汽水瓶#
汽水瓶
https://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include<iostream> using namespace std; void foo1(int n) { if(n == 0) return; cout << n/2 << endl; } int main() { int n; while ( cin >> n ) { // 观察结果得出的解法 foo1(n); } return 0; }