Search found 8 matches

by sohel_acm
Tue May 30, 2006 10:39 pm
Forum: Volume 101 (10100-10199)
Topic: 10161 - Ant on a Chessboard
Replies: 10
Views: 5238

Hi
See this Input

Code: Select all

1234567890
My AC program give this output

Code: Select all

35137 29394
But your program gives

Code: Select all

40880 35137
Fix it.I hope you will get ACC.Good Luck.
by sohel_acm
Tue May 30, 2006 10:23 pm
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 24470

Hi You should change your code as follow for(i=0; i<size; i++) { if(i==15) printf("\n "); if (prime[i]>number) break; printf("%3ld",counter[i]); } Unless your program will creat an extra line in special cases. Good Luck.
by sohel_acm
Tue May 23, 2006 8:37 pm
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22166

Hi Abhi you can try these input set. 41 67 334 0 169 24 478 58 962 64 705 45 281 27 961 91 995 42 827 36 391 4 902 53 292 82 421 16 718 95 447 26 771 38 869 12 667 99 35 94 703 11 322 33 673 64 141 11 253 68 547 44 662 57 37 59 723 41 529 78 The correct output: 41 67: 1 2 3 5 7 11 13 17 19 23 29 31 ...
by sohel_acm
Tue May 23, 2006 11:16 am
Forum: Volume 101 (10100-10199)
Topic: 10179 - Irreducible Basic Fractions
Replies: 28
Views: 9683

I have found my error.At last I got ACC.
by sohel_acm
Mon May 22, 2006 10:09 pm
Forum: Volume 5 (500-599)
Topic: 574 - Sum It Up
Replies: 46
Views: 13966

Help On 574

Hi kodder
I have found your problem.Your code fails to give the correct output to the following input.
Input:
4 0
6 0
Your program terminates here while the correct output is:
Sums of 4:
NONE
Sums of 6:
NONE
Best Of Luck.
by sohel_acm
Mon May 22, 2006 4:26 pm
Forum: Volume 101 (10100-10199)
Topic: 10179 - Irreducible Basic Fractions
Replies: 28
Views: 9683

10179!!!! WA!!!Plz Help

Hi Solvers,
I am getting wa in 10179.But I can't find the bug in my code.Plz someone help me.Here is my code

Code: Select all

Deleted after getting ACC.
Thanx in advance.
by sohel_acm
Fri May 19, 2006 11:58 pm
Forum: Volume 2 (200-299)
Topic: 216 - Getting in Line
Replies: 57
Views: 24467

216 WA !!Plz Help

I am in a great trouble with 216.I am continuously getting WA for this problem,but i can't find where is the error.I tried several critical input.In all cases my program gave correct output.Now plz someone help me.Here is my code #include<stdio.h> #include<math.h> #include<string.h> #define M 100 c...
by sohel_acm
Fri May 19, 2006 11:48 pm
Forum: Volume 2 (200-299)
Topic: 216 - Getting in Line
Replies: 57
Views: 24467

216!WA!!!!!!!Plz Help

I am in a great trouble with 216.I am continuously getting WA for this problem,but i can't find where is the error.I tried several critical input.In all cases my program gave correct output.Now plz someone help me.Here is my code #include<stdio.h> #include<math.h> #include<string.h> #define M 100 ch...

Go to advanced search