鄙人不才,此中鄙陋甚多,望海涵!!!
打酱油
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int n;
cin>>n;
n/=10;
int sum=n;
while(n)
{
if(n>=5)
{
sum+=n/5*2;
n%=5;
}
else if(n>=3 && n<5)
{
sum+=1;
n=0;
}
else break;
}
cout<< sum <<endl;
return 0;
}