Untitled

Anonymous
plain_text
10/27/2022 5:20 PM
276 B
18
Indexable
#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;
}
	
Editor is loading...