algorithm/백준
백준 15727 Java
umilove98
2021. 7. 18. 12:57
반응형
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Q15727 {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
int l = Integer.parseInt(bf.readLine());
int t = 0;
if (l%5 == 0) {
t = l/5;
}else {
t = l/5 +1;
}
System.out.println(t);
}
}
반응형