백준 28352번: 10! #Python

ColorlessDia·2024년 9월 4일

algorithm/baekjoon

목록 보기
290/808
N = int(input())

week = 60 * 60 * 24 * 7
factorial = 1

for i in range(2, N + 1):
    factorial *= i

print(factorial // week)

0개의 댓글