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 |
Tags
- boj 11657
- two characters
- boj 6443
- special string again
- gas
- string construction
- DirectX
- 지게차와 크레인
- count triplets
- find the town judge
- lock based queue
- 2025 프로그래머스 코딩챌린지 1차예선
- boj 1074
- 프로그래밍공부
- pccp 기출문제 풀이
- the maximum subarray
- dp
- LCS
- DirectX12
- find the running median
- boj 1717
- making anagrams
- 브루트포스
- PCCE
- lock free stack
- pcce 기출문제 풀이
- c++
- lock based stack
- the longest increasing subsequence
- ice cream parlor
Archives
- Today
- Total
목록1010번 (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