백준 #28352번 10!

jhj·2024년 2월 17일

백준 JAVA

목록 보기
363/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		long p = 1;
		int n = sc.nextInt();
		
		for(int i = 1; i <= n; i++) {
			p *= i;
		}
		p = p / 60;
		p = p / 60;
		p = p / 24;
		p = p / 7;
		
		System.out.println(p);
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글