Search found 13 matches

by monika
Wed Oct 30, 2002 8:55 am
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 40698

ur invert() function is creating trouble in case an input number ends in 0.

when string2 has leading zeroes, strtol returns 0.
by monika
Tue Oct 22, 2002 6:36 am
Forum: Volume 1 (100-199)
Topic: 159 - Word Crosses
Replies: 32
Views: 3539

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...
by monika
Wed Aug 07, 2002 6:29 am
Forum: Volume 3 (300-399)
Topic: 371 - Ackermann Functions
Replies: 196
Views: 28897

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.
by monika
Fri Aug 02, 2002 8:34 am
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 13815

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...
by monika
Thu Aug 01, 2002 12:05 pm
Forum: Volume 1 (100-199)
Topic: 175 - Keywords
Replies: 13
Views: 3700

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...
by monika
Wed Jul 31, 2002 7:20 am
Forum: Volume 1 (100-199)
Topic: 144 - Student Grants
Replies: 21
Views: 3580

Thanks a Lot!!!

I got Accepted now :)
by monika
Tue Jul 30, 2002 1:19 pm
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 13815

Ok! thanks :)
by monika
Tue Jul 30, 2002 11:25 am
Forum: Volume 2 (200-299)
Topic: 264 - Count on Cantor
Replies: 47
Views: 13815

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
by monika
Tue Jul 30, 2002 7:59 am
Forum: Volume 1 (100-199)
Topic: 144 - Student Grants
Replies: 21
Views: 3580

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.
by monika
Mon Jul 29, 2002 7:56 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 185463

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
by monika
Thu Jul 25, 2002 9:03 am
Forum: Volume 1 (100-199)
Topic: 183 - Bit Maps
Replies: 15
Views: 2943

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 ...
by monika
Thu Jul 25, 2002 8:16 am
Forum: Volume 1 (100-199)
Topic: 183 - Bit Maps
Replies: 15
Views: 2943

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
by monika
Tue Jul 23, 2002 9:53 am
Forum: Volume 1 (100-199)
Topic: 175 - Keywords
Replies: 13
Views: 3700

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...

Go to advanced search