Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- lock based stack
- find the running median
- pcce 기출문제 풀이
- the maximum subarray
- lock free stack
- pccp 기출문제 풀이
- lock based queue
- string construction
- count triplets
- special string again
- boj 11657
- making anagrams
- two characters
- boj 1717
- dp
- ice cream parlor
- 비밀 코드 해독
- 지게차와 크레인
- c++
- boj 1074
- 2025 프로그래머스 코딩챌린지 1차예선
- LCS
- DirectX12
- find the town judge
- boj 6443
- the longest increasing subsequence
- 브루트포스
- 프로그래밍공부
- PCCE
- DirectX
Archives
- Today
- Total
목록다리놓기 (1)
오구의코딩모험

문제 설명 3줄 요약 1. 강 주변에는 다리를 놓기에 적합한 '사이트'가 있다. 2. 재원이는 강 서쪽 사이트(N개)와 동쪽 사이트(M개)를 이어주는 다리를 놓는다. (N 1: return number * combination(number-1) return 1 if __name__ == '__main__': for count in range(T): # N개의 사이트, M개의 사이트 입력 N,M = map(int, input().split()) # 순열 조합 answer = combination(M)/(combination(N)*combination(M-N)) print(int(answer)) 끝!
프로그래밍 공부/백준 알고리즘
2022. 8. 5. 10:47