## Search found 13 matches

Wed Oct 30, 2002 8:55 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 41856
ur invert() function is creating trouble in case an input number ends in 0.

when string2 has leading zeroes, strtol returns 0.
Tue Oct 22, 2002 6:36 am
Forum: Volume 1 (100-199)
Topic: 159 - Word Crosses
Replies: 32
Views: 3813
Hi, I'm getting RE (SIGSEGV) for 159. Could someone please give me some hint.... I've tried with numerous testcases at my end. #include <stdio.h> void main() { char leadPairPossible(char*, char*); void printCrosses(char, char*, char*, char, char*, char*); char c1, c2; char w1[11], w2[11], w3[11], w4...
Wed Aug 07, 2002 6:29 am
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 30476
You've not mentioned, which problem you are trying to solve.

If this is 100 ( The 3n+1 Problem ), then you should post it in Volume I.

Also, take care of the ouput format required by the problem description. You only need to print a, b and value.
Fri Aug 02, 2002 8:34 am
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 14310
Hi, I'm getting WA. Could someone help me identify what is wrong. Here is my code: #include <stdio.h> void main() { int k,N; int z,num,den; while(!feof(stdin)) { scanf("%d",&N); if( (N<1) || (N>10000000)) continue; num=1; den=1; z=1; k=1; /* we are looking for kth term*/ while(k<N) { /*traverse alon...
Thu Aug 01, 2002 12:05 pm
Forum: Volume 1 (100-199)
Topic: 175 - Keywords
Replies: 13
Views: 3818
Hi, Thanks for the reply :D My program doesn't uses recursion. It was only a copy-paste form an earleir problem! And ok, I managed to get rid of SIGSEGV. It was due to inadequate memory allocation!!!! But now I'm getting WA! Any hints??? #include <stdio.h> #include <stdlib.h> #include <ctype.h> #inc...
Wed Jul 31, 2002 7:20 am
Forum: Volume 1 (100-199)
Topic: 144 - Student Grants
Replies: 21
Views: 3849
Thanks a Lot!!!

I got Accepted now
Tue Jul 30, 2002 1:19 pm
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 14310
Ok! thanks
Tue Jul 30, 2002 11:25 am
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 14310

### 264: isn't sample output wrong?

Hi,

Maybe I've misunderstood the problem!
But the sample output looks wrong to me.

Shouldn't the 14th term be 4/2 instead of 2/4 ???

-Monika
Tue Jul 30, 2002 7:59 am
Forum: Volume 1 (100-199)
Topic: 144 - Student Grants
Replies: 21
Views: 3849

### 144 - Student Grants

I keep getting WA for 144....

It would be very helpful, if somebody could provide me a sample set of input/output.

or if somebody could give me his ACCEPTED program for 144, so that I can compare my outputs.

Thanks.
Mon Jul 29, 2002 7:56 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 194119
Hi, Please note that you have not initilaized maxcount in each cycle. Hence your program would give incorrect results from second time onwards. e.g. Run your program with inputs, say (1, 20) you will get correct result i.e. 21 Now give inputs as (1,1) and It'd still give 21 as answer! -Monika
Thu Jul 25, 2002 9:03 am
Forum: Volume 1 (100-199)
Topic: 183 - Bit Maps
Replies: 15
Views: 3148

### 183

Hi, Thanks for the reply. But I've tried this, and I get the original bitmap back. I've even tried with 200 X 200 matrix, and I'm able to convert it from B to D and vice versa. I'm listing my program below. (although it is quite long), but please let me know, if you could identify some problem with ...
Thu Jul 25, 2002 8:16 am
Forum: Volume 1 (100-199)
Topic: 183 - Bit Maps
Replies: 15
Views: 3148

### 183

Hi,

I'm getting WA for 183.

Could someone provide me some good sample input/output for this problem, or let me know, what all tricks could be involved here?

Thanks,
Monika
Tue Jul 23, 2002 9:53 am
Forum: Volume 1 (100-199)
Topic: 175 - Keywords
Replies: 13
Views: 3818

### 175: SIGSEGV

Hi, Could someone please help me identify why I'm getting RunTime Error: Your program has died with signal 11 (SIGSEGV). Meaning: Invalid memory reference Before crash, it ran during 0.000 seconds. My program is: ------------- /* @JUDGE_ID: 21235WP 175 C "Recursion" */ /* @BEGIN_OF_SOURCE_CODE */ #i...