-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bronze V] Title: 팩토리얼 2, Time: 72 ms, Memory: 31120 KB -BaekjoonHub
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# [Bronze V] 팩토리얼 2 - 27433 | ||
|
||
[문제 링크](https://www.acmicpc.net/problem/27433) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 31120 KB, 시간: 72 ms | ||
|
||
### 분류 | ||
|
||
사칙연산, 수학 | ||
|
||
### 제출 일자 | ||
|
||
2024년 6월 20일 10:25:44 | ||
|
||
### 문제 설명 | ||
|
||
<p>0보다 크거나 같은 정수 N이 주어진다. 이때, N!을 출력하는 프로그램을 작성하시오.</p> | ||
|
||
### 입력 | ||
|
||
<p>첫째 줄에 정수 N(0 ≤ N ≤ 20)이 주어진다.</p> | ||
|
||
### 출력 | ||
|
||
<p>첫째 줄에 N!을 출력한다.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import sys | ||
n = int(sys.stdin.readline()) | ||
ans = 1 | ||
for i in range(1,n+1): | ||
ans *= i | ||
print(ans) |