题解 | #汽水瓶#
汽水瓶
https://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a ) { // 注意 while 处理多个 case if(a) cout << a/2 << endl; } } // 64 位输出请用 printf("%lld")
汽水瓶
https://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a ) { // 注意 while 处理多个 case if(a) cout << a/2 << endl; } } // 64 位输出请用 printf("%lld")
相关推荐