Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

dh-winternagi 님의 블로그

(10872) 팩토리얼 본문

백준 (C++)/Solve

(10872) 팩토리얼

dh-winternagi 2026. 4. 16. 07:14

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

단계별로 풀어보기

17단계(조합론) 3번째

 

 

 

#include <iostream>
using namespace std;

int main() 
{
  long n, ans= 1;
  
  cin >> n;
  
  for(int i=1;i<=n;i++)  ans*= i;
  
  cout << ans;
  
  return 0;
}

'백준 (C++) > Solve' 카테고리의 다른 글

(1010) 다리 놓기  (0) 2026.04.16
(11050) 이항 계수 1  (0) 2026.04.16
(24723) 녹색거탑  (0) 2026.04.16
(15439) 베라의 패션  (0) 2026.04.16
(24511) queuestack  (0) 2026.04.16