initial commit
This commit is contained in:
parent
dd7ee8f7aa
commit
04888589e1
20
617A-Elephant/617A.cpp
Normal file
20
617A-Elephant/617A.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user