Search found 1 match

by shimul_kar
Fri Jan 04, 2013 3:30 pm
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 32900

Problem 10034 : Freckles getting WA pls hlp

#include<stdio.h> #include<math.h> int root(int v,int p[]){ while(p[v] != v) {v = p[v];} return v; } void union_ij(int i,int j,int p[]){ if(j > i) p[j] = i; else p = j; } int main() { int test,n,o,l,i,j,flag; flag=0; scanf("%d",&test); for(o=0;o<test;o++) { scanf("%d",&n); printf("\n"); double x[n],...

Go to advanced search