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 |
Tags
- BFSDFS
- BOJ
- Eulerian path
- GCD
- POJ
- backtracking
- Cycle detecting
- CS Academy
- Euler path
- 백준
- flows
- bitmask
- disjoint-set
- Sieve_of_Eratosthenes
- Euler circuit
- Segment Tree
- graph modeling
- Eulerian circuit
- Algospot
- hashing
- implementation
- BST
- Shortest path
- Dag
- DynamicProgramming
- scc
- mathematics
- graph
- Greedy
- dynamic programming
Archives
- Today
- Total
그냥 하는 노트와 메모장
BOJ 15271 - 친구 팰린드롬2 본문
BOJ 15272 - 친구 팰린드롬2
[ 분류 - 이분 매칭 ]
주의해야할 점은 하나밖에 없다. 바로 친한 친구더라도 동성이라면 춤을 추지 않는다는 것.
남자와 여자로 이분 그래프를 구성하고, 최대 매칭을 구한다. 구한 뒤, 로봇 댄스를 출 친구를 섭외할 수 있으면 +1를 해준다.
'Editorials' 카테고리의 다른 글
BOJ 14842 - 재홍의 사다리 (0) | 2018.12.22 |
---|---|
BOJ 15270 - 친구 팰린드롬 (0) | 2018.12.22 |
Comments