This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <iostream> | |
#include <vector> | |
#include <memory.h> | |
using namespace std; | |
int t, v, e; int color[20001]; bool check; | |
vector<int> adj[20001]; | |
void search(int now, int col) { | |
//visited[now] = true; | |
color[now] = col; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1197.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다. | |
// | |
#include "stdafx.h" | |
#include <stdio.h> | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <queue> | |
#include <memory.h> |