Search found 2 matches

by Degiac
Wed Sep 17, 2014 10:39 pm
Forum: Volume 11 (1100-1199)
Topic: 1172 - The Bridges of Kolsberg
Replies: 5
Views: 12098

Re: 1172 - The Bridges of Kolsberg

Has someone got some tricky test cases for this problem? I keep getting WA and I can't realize why. I wrote some test cases myself but I always get the right answer

EDIT: nvm, solved
by Degiac
Thu Sep 04, 2014 11:51 pm
Forum: Volume 7 (700-799)
Topic: 793 - Network Connections
Replies: 102
Views: 47741

Re: 793 - Network Connections

I keep getting WA, even though I ran every test from this thread successfully on my PC. Am I missing something in my code?


#include <cstdio>

using namespace std;

int pc[1000];
int rank[1000];

int parent(int i) { return (pc[i] == i) ? i : (pc[i] = parent(pc[i])); }

bool isConnected(int i, int ...

Go to advanced search