본문 바로가기 메뉴 바로가기

광그로

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

광그로

검색하기 폼
  • 개인 (130)
    • 알고리즘 (40)
      • 자료구조 (8)
      • DP (15)
      • (깨짐) (17)
    • 문제해결기법 (0)
    • Web (10)
    • C++ (6)
    • C# (59)
      • Xamarin (1)
      • WPF (57)
    • 일상 (1)
      • 운동 (0)
    • iOS(swift) (10)
  • 방명록

1707 (1)
BOJ)1707 이분 그래프 (다시보기)

문제 : 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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
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
  • facebook
  • 코딩야학
  • 문자열
  • 타일링
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바