Search found 12 matches
- Sun Jul 06, 2003 10:40 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10493 - Cats, with or without Hats
- Replies: 13
- Views: 8363
What's the problem with this code??
Can anyone tell me whats the problem with the following code? Why it gets WA?? [cpp][c] /* 10493 : Cats, with or without Hats */ /* Discrete Math :Rosen - page 536 */ #include<stdio.h> #include<math.h> void main() { long ary,leaf; double total,fraction,integer; while(scanf("%ld%ld",&ar...
- Wed Jun 25, 2003 10:10 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10493 - Cats, with or without Hats
- Replies: 13
- Views: 8363
WA again and again : 10493 Cat ...
I am getting WA in this problem.
I found a formula in a discrete math book for this
and i used that one. I handled the case 1 1 specially as "multiple" and
"Impossible" if total number of node is fraction.
Can anyone help me with some special input/output?
I found a formula in a discrete math book for this
and i used that one. I handled the case 1 1 specially as "multiple" and
"Impossible" if total number of node is fraction.
Can anyone help me with some special input/output?
- Wed Jun 25, 2003 10:02 pm
- Forum: Volume 104 (10400-10499)
- Topic: 10433 - Automorphic Numbers
- Replies: 41
- Views: 28309
10433 Automorphic Numbers : Ambiguous Prob description?
Can anyone help me with some critical input output?
I donno why i am getting WA.
What does "leading zeros must be considered as significant. " mean?
Bye![:-?](./images/smilies/icon_confused.gif)
I donno why i am getting WA.
![:cry:](./images/smilies/icon_cry.gif)
What does "leading zeros must be considered as significant. " mean?
Bye
![:-?](./images/smilies/icon_confused.gif)
- Tue Dec 17, 2002 9:51 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10110 - Light, more light
- Replies: 76
- Views: 36664
Helping Hand
Here goes a hint - Square root the number , it has some special property, think of it.
bye![:D](./images/smilies/icon_biggrin.gif)
bye
![:D](./images/smilies/icon_biggrin.gif)
- Thu Dec 05, 2002 12:31 am
- Forum: Volume 101 (10100-10199)
- Topic: 10181 - 15-Puzzle Problem
- Replies: 38
- Views: 26003
10181 : 15 PUZZLE - HELP PLZ! PLZ!! PLZ!!!
Somebody told me that 15 puzzle is a very good program to learn IDA* Search.I read about IDA* Search in a book but found no way to code it. Can somebody plz send me a solution of 15 puzzle using IDA* Search in C or C++? My email address is <laboni_inobal@yahoo.com> I would be very very grateful if a...
- Tue Dec 03, 2002 8:33 pm
- Forum: Algorithms
- Topic: Bellman ford algorithm in C
- Replies: 3
- Views: 8667
Thanks a lot
Suman,
Thank u very much for the code.
I hope this would work for me.
Thanks again.
Bye
Laboni
Thank u very much for the code.
I hope this would work for me.
Thanks again.
Bye
Laboni
- Sat Nov 30, 2002 10:16 pm
- Forum: Algorithms
- Topic: Bellman ford algorithm in C
- Replies: 3
- Views: 8667
Is there any one - Hello?
If anyone have problem sending bellman ford in this board but wants to send me personally - requested to mail me <laboni_inobal@yahoo.com>
bye
Laboni
bye
Laboni
- Wed Nov 27, 2002 4:45 pm
- Forum: Algorithms
- Topic: Bellman ford algorithm in C
- Replies: 3
- Views: 8667
Bellman ford algorithm in C
hi! I read the Bellman-ford algorithm but just can't code it. I need the code very very much. I know it is not good to ask for source codes here, and in fact i should not ask for it , but i have little time in hand i need a source code for BELLMAN-FORD algorithm to find the shortest path in a graph ...
- Sat Sep 28, 2002 6:12 pm
- Forum: Volume 2 (200-299)
- Topic: 202 - Repeating Decimals
- Replies: 82
- Views: 22249
202 - Repeating Decimals || Sample input/Output plz ...
Hi!
Can anyone provide me some critical input/output for this problem.
I tested with different types of inputs and found my program working.
But OJ says WA. May be your iput will help me to fix the error.
Thanks for reading my post.
Bye
Can anyone provide me some critical input/output for this problem.
I tested with different types of inputs and found my program working.
But OJ says WA. May be your iput will help me to fix the error.
Thanks for reading my post.
Bye
- Sun Sep 15, 2002 5:50 pm
- Forum: Volume 1 (100-199)
- Topic: 113 - Power of Cryptography
- Replies: 163
- Views: 38066
113- power of cryptography - What is the algorithm?
this problem is a nightmare! P is Such a big number!!
There must be some easy algorithm in number theory to solve such problem.Can anyone help me plz?![:(](./images/smilies/icon_frown.gif)
There must be some easy algorithm in number theory to solve such problem.Can anyone help me plz?
![:(](./images/smilies/icon_frown.gif)
- Sun Sep 15, 2002 5:44 pm
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 42418
- Sat Sep 14, 2002 9:34 pm
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 42418
119 : GG Giver - Problem with multiple input
Hey! My program solves the problem correctly but it does not take more than one input.It takes only the first set of input, gives correct result, but then exist. Can u plz find out why? here is the code in C: [c] //greedy gift giver:119 #include<stdio.h> #include<string.h> char name[100][200]; long ...