题解 | #汽水瓶#
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include<iostream>
using namespace std;
int main(){
int n;
//cin>>n;
while(cin>>n , n!=0){
cout<<n/2<<endl;
}
return 0;
}
汽水瓶
http://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f
#include<iostream>
using namespace std;
int main(){
int n;
//cin>>n;
while(cin>>n , n!=0){
cout<<n/2<<endl;
}
return 0;
}
相关推荐