Search found 17 matches

by lazyboy
Mon Oct 19, 2009 8:10 pm
Forum: Volume 116 (11600-11699)
Topic: 11699 - Rooks
Replies: 2
Views: 3215

11699 - Rooks

I am getting WA for this problem. somebody please check my code & give me some input for which my code fails. code given below.... #include<stdio.h> #include<string.h> #include<stdlib.h> char grid[30][30]; int main() { //freopen("a.in","r",stdin); //freopen("a.out","w",stdout); long i,j,rmax,count,r...
by lazyboy
Sun Oct 18, 2009 8:09 pm
Forum: Volume 101 (10100-10199)
Topic: 10196 - Check The Check
Replies: 77
Views: 23559

Re: 10196 - Check The Check

dear ThanatosX....

I didn't check your code but my ACC code produces output as same as yours.

you used " char board[8][8]; "
try by increase the size of board[][] >8
Thanks.
by lazyboy
Sat Oct 03, 2009 12:38 am
Forum: Volume 112 (11200-11299)
Topic: 11247 - Income Tax
Replies: 50
Views: 20740

Re: 11247 - Income Tax Hazard

Thanks setu for ur help...Got Acc.
by lazyboy
Fri Oct 02, 2009 11:20 pm
Forum: Volume 115 (11500-11599)
Topic: 11508 - Life on Mars?
Replies: 7
Views: 3033

Re: 11508 - Life on Mars?

Plz any one help me.... i am getting WA in these problem...... code given below.... #include<stdio.h> #include<string.h> #include<stdlib.h> long cmp(const void *a,const void *b) { long *x=(long*)a; long *y=(long*)b; return *x-*y; } char str; long data[100100],res[100100]; int main() { long i,j,n,fl...
by lazyboy
Mon Feb 23, 2009 8:46 pm
Forum: Volume 113 (11300-11399)
Topic: 11321 - Sort! Sort!! and Sort!!!
Replies: 50
Views: 20335

Re: 11321 - Sort! Sort!! and Sort!!!

Please somebody help me with this problem. I got WA for many times. my code passes for all test case given. but this got WA for everytime. Please help me.... code given below: #include <stdio.h> #include <stdlib.h> long n,m; long mod( long a, long b) { return a%b; } long cmp(long *a,long *b) { long ...
by lazyboy
Sun Feb 08, 2009 11:53 pm
Forum: Volume 112 (11200-11299)
Topic: 11247 - Income Tax
Replies: 50
Views: 20740

Re: 11247 - Income Tax Hazard

Hi... my code passes for all the test cases given in this thread. but i got WA for many time. please give me some more test case for this problem. i post my code below..

Code: Select all

Code removed after ACC...
Thanks in advance.
by lazyboy
Sat Feb 07, 2009 9:09 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 40060

Re: 929 - Number Maze

Thanks newkid for your debugging.
i removed my code.
by lazyboy
Wed Feb 04, 2009 8:57 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 40060

Re: 929 - Number Maze

sorry :( , I bilieved him and i used

Code: Select all

if(j>0 && flag[i][j-1]==0)

and also,

if(j>0)
    if(flag[i][j-1]==0)
but for both the time i got RE.
so i think problem is in another portion.

Is my heapify correct and array size enough?

thanks for urs reply.
by lazyboy
Wed Feb 04, 2009 8:24 pm
Forum: Volume 114 (11400-11499)
Topic: 11415 - Count the Factorials
Replies: 11
Views: 5029

Re: 11415 - Count the Factorials

Thanks MRH.
by lazyboy
Tue Feb 03, 2009 9:12 pm
Forum: Volume 114 (11400-11499)
Topic: 11415 - Count the Factorials
Replies: 11
Views: 5029

Re: 11415 - Count the Factorials

Thanks for ur reply MRH.
i am just modifying the sieve. but how can i make the process function more fast. please give me a little hints.

Thanks in advance.
by lazyboy
Tue Feb 03, 2009 8:58 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 40060

Re: 929 - Number Maze

Thanks for ur reply.

newkid wrote
"The array index bound checking should be done first before accessing the array element.
you should do"
i think this not the case. i used 'and' operation, and when both the condition returns true then the segment executes.
so this is not standing for RE.
by lazyboy
Mon Jan 26, 2009 9:12 pm
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 40060

Re: 929 - Number Maze

I am getting RE error in this problem.
i didn't find the reason... please help me.

here is my code :

Code: Select all

Code removed
Thanks in advance.
by lazyboy
Mon Jan 26, 2009 9:03 pm
Forum: Volume 114 (11400-11499)
Topic: 11415 - Count the Factorials
Replies: 11
Views: 5029

Re: 11415 - Count the Factorials

I am getting TLE in this problem. please anybody help me...
here is my code :

Code: Select all

removed....
Thanks in advance.
by lazyboy
Fri Aug 22, 2008 12:09 am
Forum: Volume 113 (11300-11399)
Topic: 11321 - Sort! Sort!! and Sort!!!
Replies: 50
Views: 20335

Re: 11321 - Sort! Sort!! and Sort!!!

I got WA for many times. I passed all the test case above.please help me...

Thanks in advance...
by lazyboy
Fri Jul 11, 2008 9:23 pm
Forum: Volume 114 (11400-11499)
Topic: 11452 - Dancing the Cheeky-Cheeky
Replies: 7
Views: 4011

Re: 11452 - Dancing the Cheeky-Cheeky

Code: Select all

Accepted....
Thanks jurajz.

Go to advanced search