Search found 7 matches

by murtaza
Mon Feb 21, 2005 5:07 am
Forum: Volume 108 (10800-10899)
Topic: 10803 - Thunder Mountain
Replies: 47
Views: 23829

Changed that ..... still WA ... can anyone give me some i/o's to check ???
thanx
by murtaza
Sun Feb 20, 2005 4:04 pm
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 29556

Isn't the algm. just to check if the graph is a bipartite graph or not ... i.e if there are no odd cycles ????
by murtaza
Sun Feb 20, 2005 12:30 pm
Forum: Volume 108 (10800-10899)
Topic: 10803 - Thunder Mountain
Replies: 47
Views: 23829

Can any one point out the bug in the code .... #include<stdio.h> #include<math.h> #define INF 999999999 int grid[101][2]; float gph[101][101]; float floydWarshal( int ); main( ) { int cases,towns,i,j,m,tmp; float len; scanf( "%d", &cases ); for( i = 0;i < cases;i ++ ) { scanf( "%d", &towns ); for( j...
by murtaza
Sun Nov 07, 2004 5:51 pm
Forum: Volume 105 (10500-10599)
Topic: 10515 - Powers Et Al.
Replies: 124
Views: 29828

I don't think u have got the logic right for solving the problem.
Ur program gives wrong result for even inputs like
2 7
by murtaza
Wed Oct 06, 2004 7:40 pm
Forum: Volume 1 (100-199)
Topic: 121 - Pipe Fitters
Replies: 36
Views: 2514

Thnx for the posts ... my code had the same bug as the one u posted.
by murtaza
Mon Oct 04, 2004 8:20 am
Forum: Volume 3 (300-399)
Topic: 337 - Interpreting Control Sequences
Replies: 20
Views: 4279

337: Got TLE plz help

I don't know why its giving TLE CODE: #include <stdio.h> /**Getting a TLE ... i think for some input it might be * getting stuck in a loop .... but can't figure out for which * input */ #define OVERWRT 0 #define INSERT 1 int curXPos = 0; int curYPos = 0; char screen[ 10 ][ 11 ]; int mode = OVERWRT; ...
by murtaza
Tue Jul 20, 2004 7:51 pm
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 40624

713

I saw all the help on prob.713 and tried all the suggested inputs .... but still i keep getting WA. Can someone plz lokk at my code below and suggest....... C code: --------- #include<stdio.h> #include<string.h> #include<stdlib.h> /*find the revesed sum of 2 numbers .... numbers r upto 200 digits lo...

Go to advanced search