题解 | #访友#
访友
http://www.nowcoder.com/practice/b8e21f5816874425836b7d32011f46b0
#include <stdio.h>
int main()
{
int x,n;
scanf("%d",&x);
if(x%5==0)
n=x/5;
else
n=x/5+1;
printf("%d",n);
return 0;
}
访友
http://www.nowcoder.com/practice/b8e21f5816874425836b7d32011f46b0
#include <stdio.h>
int main()
{
int x,n;
scanf("%d",&x);
if(x%5==0)
n=x/5;
else
n=x/5+1;
printf("%d",n);
return 0;
}
相关推荐