fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,op = 0; cin >> n;
  6. while(n != 0){
  7. n -= min(5,n),++op;
  8. }
  9. cout << op;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5296KB
stdin
12
stdout
3