Search found 74 matches

by Chirag Chheda
Sat Jun 28, 2008 8:00 pm
Forum: Bugs and suggestions
Topic: 11087 - Divisibility Testing
Replies: 18
Views: 6241

Re: 11087 - Divisibility Testing

10063 Knuth's Permutation I have made around 10 submissions for this question which was unjudged.Some of the submission numbers are given below: Submission number: 6497283 6457415 6457893 6474323 11087 Divisibility Testing 6488073 6474358 I hope my solutions will be finally judged. Hoping for a posi...
by Chirag Chheda
Sat Jun 28, 2008 7:38 am
Forum: Volume 112 (11200-11299)
Topic: 11233 - Deli Deli
Replies: 12
Views: 4234

Re: 11233 - Deli Deli

it is not a multiple input problem..
by Chirag Chheda
Fri Jun 27, 2008 12:49 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 180059

Re: 100

Can some one help me with better algo??? to get accepted quicker.
Think of using DP in this question.
Well ,now i think u can figure out the solution yourself.

Bye
by Chirag Chheda
Fri Jun 27, 2008 12:41 pm
Forum: Bugs and suggestions
Topic: 11087 - Divisibility Testing
Replies: 18
Views: 6241

Re: 11087 - Divisibility Testing

Even I am facing the same problem with 2 questions.But when i check the last 50 submissions the code of other people gets judged...
Please look into it
by Chirag Chheda
Fri Jun 27, 2008 10:49 am
Forum: Volume 102 (10200-10299)
Topic: 10212 - The Last Non-zero Digit.
Replies: 63
Views: 30561

Re: 10212 - The Last Non Zero Digit

ok now i got it
well my approach was completely wrong at it.
I think now i shud give it a try
by Chirag Chheda
Fri Jun 27, 2008 8:34 am
Forum: Volume 102 (10200-10299)
Topic: 10212 - The Last Non-zero Digit.
Replies: 63
Views: 30561

Re: 10212 - The Last Non Zero Digit

Can someone plz give me test cases so that i can find the bug in my code
Thnx in advance
by Chirag Chheda
Fri Jun 27, 2008 8:17 am
Forum: Volume 114 (11400-11499)
Topic: 11407 - Squares
Replies: 24
Views: 8991

Re: 11407 - Squares

Thnx Jan.Your help helped me.
Finally I got ACC.

Keep posting.
Bye.
by Chirag Chheda
Fri Jun 27, 2008 8:03 am
Forum: Volume 114 (11400-11499)
Topic: 11407 - Squares
Replies: 24
Views: 8991

Re: 11407 - Squares

thats intersting that the same code returns different answers on different compilers. if(sqrt(i)*sqrt(i)==i) The above line means that if i is a perfect square than the answer should be 1 .That is it can be expressed as a square of only one number which is its squre root. Also can u let me know for ...
by Chirag Chheda
Fri Jun 27, 2008 7:16 am
Forum: Volume 114 (11400-11499)
Topic: 11460 - Balance
Replies: 9
Views: 1561

Re: 11460 - Balance

Thnx got it.Now i will try 2 solve it

Keep posting..
by Chirag Chheda
Thu Jun 26, 2008 1:29 pm
Forum: Volume 114 (11400-11499)
Topic: 11460 - Balance
Replies: 9
Views: 1561

Re: 11460 - Balance

the x co-ordinate of CLR shud be 2 I think.
How come its 2.5
by Chirag Chheda
Thu Jun 26, 2008 12:18 pm
Forum: Volume 5 (500-599)
Topic: 516 - Prime Land
Replies: 23
Views: 6476

Re: 516

hi,
All numbers in the line are separated by one space
There is no space after the last number.
by Chirag Chheda
Thu Jun 26, 2008 12:03 pm
Forum: Volume 114 (11400-11499)
Topic: 11460 - Balance
Replies: 9
Views: 1561

Re: 11460 - Balance

Well in test case given in the problem
first polygon->(0 1) (2 3) (4 1) ..Its centroid(2,5/3)
second polygon->(4 -3) (2 -3) (2 -1) (0 -1)..Its centroid (2,-2)

Hence the difference between the X co-ordinate is 0.
then how come the answer is 0.5??
Can u plz xplain
by Chirag Chheda
Thu Jun 26, 2008 7:41 am
Forum: Volume 113 (11300-11399)
Topic: 11321 - Sort! Sort!! and Sort!!!
Replies: 50
Views: 20141

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

Well the output to the second part in the above example is wrong.

I think -5 should come before -3 as -5%3=-2 & -3%3=0

My Acc prog gives the following output:
15 3
-5
-11
-2
-1
-13
-10
-4
15
9
-3
-12
6
7
8
14
0 0
by Chirag Chheda
Thu Jun 26, 2008 7:10 am
Forum: Volume 114 (11400-11499)
Topic: 11407 - Squares
Replies: 24
Views: 8991

Re: 11407 - Squares

Thank you sir for replying.. the output of my code for the test cases given by you match exactly with your output. I wonder whats going wrong.Can you please give me some more test cases or check the output of my code with your ACC code for some other cases. Also let me know if my algo is wrong Waiti...
by Chirag Chheda
Mon Jun 23, 2008 7:36 pm
Forum: Volume 114 (11400-11499)
Topic: 11405 - Can U Win?
Replies: 15
Views: 6550

Re: 11405 - Can U Win?

Well can u tell me if there is only one move and we have 2 pawns which are reachable from the present position of the knight then by the algo which i have implemented the answer shud be yes.. but according to you the answer should be no... The following code checks all possible 8 moves for single n....

Go to advanced search