Search found 2 matches

by prodhan
Fri Feb 08, 2013 9:42 pm
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 132
Views: 24197

Re: 459 - WA

I'm getting WA. can anybody help me pls? #include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<cstring> using namespace std; int par[30]; void make_set(int i) { par[i] = i; } int find(int r) { if(par[r]==r) return r; else { return par[r] = find(par[r]); } } void Union(int...
by prodhan
Sat Oct 17, 2009 3:18 am
Forum: Volume 1 (100-199)
Topic: 136 - Ugly Numbers
Replies: 156
Views: 17635

Re: 136 Ugly Number Presentation Error

where to include "\n"
I am trying it in more & more in diff positions but getting WA.

Go to advanced search