示例2
输入
10
输出
2
代码实现:
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
// 朋友家的位置
int input = Integer.parseInt(str);
int result = 0;
if(input<=5){
result = 1;
}else if(input>5){
int a = input % 5;
int b = input/5;
if(a!=0){
result = b+1;
}else{
result = b;
}
}
System.out.println(result);
}
}