Search found 1 match

by brosa92
Thu Oct 17, 2013 9:31 pm
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 45970

Re: 10004 - Bicoloring

I've sent the following code and got WA. Anyone can help me w/ that?

#include <iostream>
#include <string.h>
using namespace std;

#define _N 205

int adjacencyMatrix[_N][_N];
int color[_N];
int n;

bool dfs(int v, int colorToPaint = 1) {
color[v] = 1;
int nextColor = colorToPaint==1?2:1;
int ...

Go to advanced search