Search found 2 matches

by Jinming
Wed Feb 11, 2015 2:55 pm
Forum: Volume 115 (11500-11599)
Topic: 11504 - Dominos
Replies: 55
Views: 20870

Re: 11504 - Dominos

brianfry713 wrote:ree975, read this thread.
Jinming, instead of vector<vector<int> > graph(n), use a global vector<int> graph[100000], clear it between test cases, and you will get AC.
I got AC! Thank you so much brianfry!
by Jinming
Mon Feb 09, 2015 6:39 am
Forum: Volume 115 (11500-11599)
Topic: 11504 - Dominos
Replies: 55
Views: 20870

Re: 11504 - Dominos

Hi, I passed all the inputs in this thread, but I keep getting RTE in the OJ. Please help me! #include<iostream> #include<vector> #include<algorithm> using namespace std; void explore(vector<vector<int> > &graph, vector<bool> &visited, vector<int> &post, int n, int v, int &clock){ visited[v] = true;...

Go to advanced search