## Search found 9 matches

Tue Jul 06, 2004 8:45 pm
Forum: Volume 106 (10600-10699)
Topic: 10672 - Marbles on a tree
Replies: 8
Views: 4185

### Thanks:

Oh. That was a bad mistake.
Now i got AC
Mon Jul 05, 2004 7:52 pm
Forum: Volume 106 (10600-10699)
Topic: 10672 - Marbles on a tree
Replies: 8
Views: 4185

### 10672 - Marbles on a tree

I used recursion to solve this problem. and it gives the solution to the test cases given in the problem perfectly. But i m getting WA .
can anyone tell me what's wrong with my code.
Code:
[cpp]
Code has been removed.
[/cpp]
Sat Jan 10, 2004 10:55 am
Forum: Off topic (General chit-chat)
Topic: How old are you? Statistics.
Replies: 121
Views: 177976
I m Kamrul Joined Two Years ago. And Solved 220+ Problems so far.

Thanks
Wed Dec 31, 2003 11:27 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 63070

### Gratitude

Now I got AC

Thank you Sohel.
Wed Dec 31, 2003 11:02 am
Forum: Volume 1 (100-199)
Topic: 125 - Numbering Paths
Replies: 56
Views: 5981

### A small suggesion.

I used DFS to find the nodes which are in the cycle and marked them
with -1. Then used F. Warshall to find the path matrix .

Could you explain the following code what you are doing here.

Code: Select all

``````        if( d[j][i] && d[i][i] && d[i][k])
d[j][k] = -1;
``````
Thanks.
Mon Dec 29, 2003 9:45 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 63070

### 10200 Prime Time

I m getting TLE for This Problem
Can anyone tell me what is the problem with my algo.

It runs well for the worst inputs

as:
0 10000
[cpp]
Code Removed
[/cpp]

Thanks.
Mon Dec 29, 2003 9:32 am
Forum: Algorithms
Topic: String Maching Algorithm
Replies: 2
Views: 1354

### String Maching Algorithm

Can anyone tell me which one is the Best String maching algorithm ??
Wed Dec 03, 2003 12:18 pm
Forum: Volume 105 (10500-10599)
Topic: 10543 - Traveling Politician
Replies: 25
Views: 7363

### 10543 - Traveling Politician

I m getting Wa in this problem . I used BFS to solve this Problem and it works for all the Sample Cases and Inputs I have made. Is There any Bad inputs for This Problem ??.

If so, PLZ help me !!.

Some Inputs with Outputs will be better for me to check my fault.
Wed Jul 30, 2003 10:59 am
Forum: Algorithms
Topic: Muliple shortest Path Problem
Replies: 4
Views: 2310

### Re: hello cow

shaikat wrote:all are cows