문제 : 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
- command
- Custom Cell
- 백준온라인
- listview
- FEED
- 스택
- MVVM
- XAML
- BFS
- 데이터 바인딩
- Cell Animation
- Add TapGesture
- 그래프
- dfs
- BOJ
- WPF
- 생활코딩
- DP
- CollectionView
- CustomCollectionViewCell
- 객체
- C++
- 백준
- Grid
- Fakebook
- UIView Animation
- 코딩야학
- 문자열
- 타일링
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함