Search found 106 matches

by sapnil
Tue Nov 27, 2007 4:14 am
Forum: Volume 113 (11300-11399)
Topic: 11359 - Guards, Imbecile Guards
Replies: 6
Views: 2803

WR

I am trying with BFS,But till WR.
Can any one tell me whats wrong here:

My code:

Code: Select all

//                        Removed
Thanks
Keep posting
Sapnil
by sapnil
Sat Nov 24, 2007 7:31 am
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 16498

To alamgir

-> You should print a blank line after each case
-> Remove the line
freopen("output.txt","w", stdout);
freopen("input.txt","r", stdin);

Thanks
Keep posting
Sapnil
by sapnil
Fri Nov 23, 2007 3:03 pm
Forum: Volume 4 (400-499)
Topic: 445 - Marvelous Mazes
Replies: 93
Views: 10068

To Fuad Hassan EWU

your output is like this:

Code: Select all

T TTTTT
T  T TT
T T  TT
T   T T
TTT   T
T   T T
TTTTT*T
 
XX   X
XXXX X<
but it must be

Code: Select all

T TTTTT
T  T TT
T T  TT
T   T T
TTT   T
T   T T
TTTTT*T
 
XX   X
XXXX X
<
'<' indecate cursor.

Hope its help

Thanks
Keep posting
Sapnil
by sapnil
Thu Nov 22, 2007 2:08 pm
Forum: Volume 113 (11300-11399)
Topic: 11352 - Crazy King
Replies: 32
Views: 11879

Many many thanks to rio and sclo
its really help me;

Thanks
Keep posting
sapnil
by sapnil
Sun Nov 18, 2007 6:41 pm
Forum: Volume 113 (11300-11399)
Topic: 11348 - Exhibition
Replies: 24
Views: 10093

To RC's

Try This cases :

Code: Select all

Input:
3
3
3 1 2 3
3 4 5 6
3 7 8 9
1
1 1
1
5 1 2 3 4 5
Output:
Case 1: 33.333333% 33.333333% 33.333333%
Case 2: 100.000000%
Case 3: 100.000000%
Thanks
Keep posting
Sapnil
by sapnil
Sun Nov 18, 2007 6:29 pm
Forum: Volume 113 (11300-11399)
Topic: 11352 - Crazy King
Replies: 32
Views: 11879

Why i'm getting WR Plz Help me

->Here my code

Code: Select all

// Code remove After Acc
Thanks
Keep posting
Sapnil
by sapnil
Tue Nov 06, 2007 7:53 pm
Forum: FAQ
Topic: How can i get my Acc code
Replies: 2
Views: 5942

How can i get my Acc code

In new judge system they can't mail us our Acc code.

Is there is any way one that can get his Acc code

plz...............

Thanks
Keep posting
Sapnil
by sapnil
Fri Nov 02, 2007 2:46 pm
Forum: Volume 2 (200-299)
Topic: 294 - Divisors
Replies: 91
Views: 23277

To sumon

Try with this case:

Code: Select all

input:
2
15 16
1 1
output:
Between 15 and 16, 16 has a maximum of 5 divisors.
Between 1 and 1, 1 has a maximum of 1 divisors.
Thanks
Keep posting
Sapnil
by sapnil
Fri Nov 02, 2007 12:19 pm
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 17203

To ccu496410022

Try with this case:

Code: Select all

Input:
2
1
2
Output:
0 1
0 2
Thanks
Keep posting
Sapnil
by sapnil
Fri Nov 02, 2007 2:43 am
Forum: Volume 101 (10100-10199)
Topic: 10102 - The path in the colored field
Replies: 34
Views: 12959

To alamgir

->you get RE because you take 2-d matrix of size 10000.
-> Why you take such a large value
-> 1009 is sufficient.


Thanks
Keep posting
Sapnil
by sapnil
Thu Nov 01, 2007 3:40 pm
Forum: Volume 101 (10100-10199)
Topic: 10102 - The path in the colored field
Replies: 34
Views: 12959

Ok get Acc now
>> 1009 sufficient

Thanks
Keep posting
Sapnil
by sapnil
Thu Nov 01, 2007 12:39 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 180129

To Hatty

Your problem is in taking input.
Make it simple

Code: Select all

while(scanf("%ld %ld",&j,&i)==2)
{

}
>> use long data type
>> remove your code after Acc

Thanks
Keep postingh
sapnil
by sapnil
Thu Nov 01, 2007 6:09 am
Forum: Volume 101 (10100-10199)
Topic: 10102 - The path in the colored field
Replies: 34
Views: 12959

What is the size of M ?????????

Thanks
Keep posting
Sapnil
by sapnil
Thu Nov 01, 2007 4:56 am
Forum: Volume 9 (900-999)
Topic: 962 - Taxicab Numbers
Replies: 16
Views: 10221

Is my alogorithm is right: 1. store 1^3,2^3.....less than 1001000001 in array A 2. then i generate all distinct pair some of number in A(i also generate 1^3+1^3,2^3+2^3,..,) && store them. 3. Make a decision that if a sum occure more than ones then this is a taxi cab number Thanks Keep posting Sapnil
by sapnil
Thu Nov 01, 2007 4:32 am
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 30282

To alamgir

Input this case:

Code: Select all

     aaa     a

>> your code given some garbage output


Thanks
Keep posting
Sapnil

Go to advanced search