Codeforces-SolutionsA/617A-Elephant/617A.cpp

20 lines
303 B
C++
Raw Normal View History

2023-06-07 22:15:25 +08:00
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,i=5,count=0;
cin>>n;
while(n>0)
{
while(i>=1)
{
while(n-i>=0)
{
count++;
n=n-i;
}
i--;
}
cout<<count;
}
}