Search found 1 match

by mohrd
Tue Apr 21, 2015 9:08 am
Forum: Volume 9 (900-999)
Topic: 924 - Spreading The News
Replies: 17
Views: 12855

Re: 924 - Spreading The News

Why WA with this BFS? All samples on this board passed. #include <stdio.h> #include <list> #include <vector> #include <queue> #include <iostream> using namespace std; typedef struct { int nvertices; int nedges; vector<list<int> > edges; } graph; void init_graph(graph *g) { g->nedges = 0; g->edges.re...

Go to advanced search