• Skip to primary navigation
  • Skip to content
  • Skip to footer
Just Do IT!
  • Posts
  • Categories
  • Tags

    LeeDayday

    I am an amazing person.

    • Somewhere

    [백준 11050] 이항 계수1

    최대 1 분 소요

    11050번 : 이항 계수1

    11050: 이항 계수1

    방법 1

    import sys
    
    def factorial(n):
        ans = 1
        for i in range(2, n+1):
            ans *= i
        return ans
    
    n, k = map(int, sys.stdin.readline().split())
    
    print(factorial(n) // factorial(n-k) // factorial(k))
    

    태그: baekjoon

    카테고리: algorithms

    업데이트: July 30, 2023

    공유하기

    Twitter Facebook LinkedIn
    이전 다음

    참고

    DNS 이해하기

    최대 1 분 소요

    DNS란 무엇인가?

    [Leetcode] Rising Temperature

    최대 1 분 소요

    문제 링크

    [Leetcode] Customer Who Visited but Did Not Make Any Transactions

    최대 1 분 소요

    문제 링크

    [Leetcode] Replace Emplyee ID With The Unique Identifier

    최대 1 분 소요

    문제 링크

    • 팔로우:
    • 피드
    © 2025 LeeDayday. Powered by Jekyll & Minimal Mistakes.