Untitled
unknown
plain_text
3 years ago
206 B
4
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...