문제 : https://www.acmicpc.net/problem/1707 모든 edge의 양 끝에 vetex가 존재할 때, 각 vertex의 색깔이 다를 경우, 이분 그래프의 조건을 충족시킨다. #include #include #include #include #include #include //edge의 양 끝 vertex는 서로 다른 색깔을 가져야한다. using namespace std; int vertex_num, edge_num; vector graph[20001]; int colored[20001];//0:none 1:blue 2:red void DFS(int position, int color) { colored[position] = color; for (int i = 0; i < graph..
알고리즘/(깨짐)
2017. 3. 15. 14:38
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 문자열
- Cell Animation
- Add TapGesture
- DP
- dfs
- BFS
- Grid
- 타일링
- 코딩야학
- CustomCollectionViewCell
- 백준
- 객체
- Fakebook
- FEED
- WPF
- XAML
- 그래프
- UIView Animation
- 백준온라인
- C++
- CollectionView
- 스택
- 생활코딩
- Custom Cell
- command
- MVVM
- BOJ
- 데이터 바인딩
- listview
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함