Search found 7 matches

by totobogy
Thu Feb 23, 2006 2:32 pm
Forum: Volume 3 (300-399)
Topic: 333 - Recognizing Good ISBNs
Replies: 166
Views: 22775

333-WA?

Hi. Plz help with this code. I get a WA but I tested all the cases available. #include<stdio.h> int isdigit(char c) { switch(c) { case '0': return 0; case '1': return 1; case '2': return 2; case '3': return 3; case '4': return 4; case '5': return 5; case '6': return 6; case '7': return 7; case '8': ...
by totobogy
Sat Jan 14, 2006 2:50 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 22229

I just checked it by copying and compiling the code again it gives 31 671.
wat can be the problem?
by totobogy
Sat Jan 14, 2006 1:01 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 22229

Yes. I have tested it a couple of times.
by totobogy
Thu Jan 12, 2006 8:20 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 22229

107 - Precision Issue?

Plz help me with this. I have checked the test cases on the forum too. This works for all of them except - 1048576 59049 . Is there a precision issue or some fault otherwise? #include <stdio.h> #include <math.h> #include<float.h> int main() { unsigned long h,n; /*Height of Root Cat, No. of leaf cats...
by totobogy
Thu Jan 12, 2006 8:16 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 53657

Thanks again

I see. Thanks for the valuable clarification and your time!
by totobogy
Thu Jan 12, 2006 1:55 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 53657

Thanks. It worked

Thanks a lot. This was the problem indeed. But could you tell me why didn't the earlier code work?
by totobogy
Wed Jan 11, 2006 10:38 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 53657

102 - WA

Hi! I'm new to ACM and this forum. plz help me with this. runs fine for sample input but gives WA on judge aren't there only these six possibilities? can someone provide some test cases #include<stdio.h> int main() { unsigned long bins[9]; /*2d array[3][3] could hv been used too*/ unsigned long cost...

Go to advanced search