Search found 1 match

by shariftech
Wed Nov 13, 2013 10:15 am
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 132
Views: 24672

Re: 459 - Graph Connectivity - TLE

Getting TLE ... I think it occurs because of ugly input ... But can not understand where is my fault ... #include<iostream> #include<cstdio> #include<cstring> #include<cctype> #define MAX 5000 using namespace std; int par[1000]; int flag; int node; void makeset (int n) { for(int i=1; i<=n; i++) par[...

Go to advanced search