#include <stdio.h>

int main()
{
    int moves[5]={1,2,3,4,5};
    int x;
    scanf("%d", &x);
    int ind=4;
    int Minsteps=0;
    while((x!=0)&&(ind>=0))
    {
        if(x>=moves[ind])
            Minsteps+=x/moves[ind];
        x%=moves[ind--];
    }
    printf("%d\n", Minsteps);
    return 0;
}

  

 posted on 2019-11-06 10:35  ComMario  阅读(121)  评论(0编辑  收藏  举报