Skip to content

Commit

Permalink
[Bronze V] Title: 팩토리얼 2, Time: 72 ms, Memory: 31120 KB -BaekjoonHub
Browse files Browse the repository at this point in the history
  • Loading branch information
boyamie committed Jun 20, 2024
1 parent 3bf6f48 commit ccb4a53
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
28 changes: 28 additions & 0 deletions 백준/Bronze/27433. 팩토리얼 2/README.md
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>

6 changes: 6 additions & 0 deletions 백준/Bronze/27433. 팩토리얼 2/팩토리얼 2.py
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)

0 comments on commit ccb4a53

Please sign in to comment.