C++简洁代码,真!
#include<bits/stdc++.h>
using namespace std;
int main()
{
int num;
while(cin>>num)
{
if(num==0)break;
cout<<num/2<<endl;
}
return 0;
}参考了牛客id(4681347)给出的题解,thx!

C++简洁代码,真!
#include<bits/stdc++.h>
using namespace std;
int main()
{
int num;
while(cin>>num)
{
if(num==0)break;
cout<<num/2<<endl;
}
return 0;
}参考了牛客id(4681347)给出的题解,thx!