Search found 1 match

by gtg_bansal
Thu Aug 02, 2012 7:54 am
Forum: Volume 100 (10000-10099)
Topic: 10000 - Longest Paths
Replies: 160
Views: 56559

Re: 10000 - Longest Path

Getting TLE .
This is my first submission on UVA and I am getting TLE. I am using BFS and assuming directed tree.
Please help

#include<stdio.h>
#include<vector>
#include<queue>
#include<string.h>
using namespace std;
int main()
{
int nodes,cases=0;
scanf("%d", &nodes);
while(nodes!=0){
cases ...

Go to advanced search