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 ...
Search found 7 matches
- Thu Feb 23, 2006 2:32 pm
- Forum: Volume 3 (300-399)
- Topic: 333 - Recognizing Good ISBNs
- Replies: 166
- Views: 40876
- Sat Jan 14, 2006 2:50 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55134
- Sat Jan 14, 2006 1:01 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55134
- Thu Jan 12, 2006 8:20 pm
- Forum: Volume 1 (100-199)
- Topic: 107 - The Cat in the Hat
- Replies: 278
- Views: 55134
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 ...
#include <stdio.h>
#include <math.h>
#include<float.h>
int main()
{
unsigned long h,n; /*Height of Root Cat, No. of leaf ...
- Thu Jan 12, 2006 8:16 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116932
Thanks again
I see. Thanks for the valuable clarification and your time!
- Thu Jan 12, 2006 1:55 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116932
Thanks. It worked
Thanks a lot. This was the problem indeed. But could you tell me why didn't the earlier code work?
- Wed Jan 11, 2006 10:38 pm
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116932
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 ...
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 ...