Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
206 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int a, x, p = 5,i = 0;
	cin >> x;
	while (x != 0) {
		if (x - p >= 0) {
			x -= p;
			i += 1;
		}
		else p -= 1;
	
	}
	cout << i;
}