백준 #15727번 조별 과제를 하려는데 조장이 사라졌다

jhj·2024년 2월 1일

백준 JAVA

목록 보기
70/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int l = sc.nextInt();
		if(1 <= l % 5 && l % 5 <= 4) {
			System.out.println(l / 5 + 1);
		}else {
			System.out.println(l / 5);
		}
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글