본문 바로가기
python-algorithm

백준 27433 팩토리얼 2

by 무적김두칠 2023. 2. 9.

https://www.acmicpc.net/problem/27433

 

27433번: 팩토리얼 2

0보다 크거나 같은 정수 N이 주어진다. 이때, N!을 출력하는 프로그램을 작성하시오.

www.acmicpc.net

 

1
2
3
4
5
6
from math import factorial
 
if __name__ == '__main__':
    n = int(input())
    print(factorial(n))
 
cs
반응형

'python-algorithm' 카테고리의 다른 글

백준 27389 Metronome  (0) 2023.02.09
백준 27434 팩토리얼 3  (0) 2023.02.09
leetcode 5. Longest Palindromic Substring  (0) 2023.02.08
백준 25630 팰린드롬 소떡소떡  (0) 2023.02.08
leetcode 49. Group Anagrams  (0) 2023.02.07

댓글