You are not logged in. Please login at www.codechef.com to post your questions!

×

Chefhack WA

My chefhack is giving wrong answer. Solution link is http://www.codechef.com/viewsolution/1696242 Admin please tell me the test case where it is going wrong.

asked 21 Jan '13, 17:56

raman92's gravatar image

1★raman92
2144815
accept rate: 0%

edited 21 Jan '13, 23:20

anton_lunyov's gravatar image

6★anton_lunyov ♦
6.7k62119138


Read the announcement I've added to the editorial.
Your program returns 421211088 for this test:
http://pastebin.com/raw.php?i=j6UWCAZ5
While the correct answer is 436746489.

link

answered 21 Jan '13, 23:19

anton_lunyov's gravatar image

6★anton_lunyov ♦
6.7k62119138
accept rate: 12%

I am sorry, from next time I will remember this.

(21 Jan '13, 23:22) raman921★

The test data is too large for me to debug the program, so I am unable to find why is it giving 421211088 instead of correct result. Can you please help.

(21 Jan '13, 23:35) raman921★

Read editorial again. I added link to another smaller test there.
Most probably your bug occur for large prime numbers.
So unlikely test with smaller numbers could help.

(22 Jan '13, 02:39) anton_lunyov ♦6★

Dear raman92,

Kindly post your query on the editorial page of the respective problem here, to get the desired response.

link

answered 21 Jan '13, 18:31

admin's gravatar image

0★admin ♦♦
19.8k350498541
accept rate: 35%

edited 21 Jan '13, 18:32

We have too many queries there. It is quite hard to keep tracking those mess we have there. I prefer them to be separate questions.

Moreover since voted comments does not change karma it is quite upsetting from karma point of view to answer such question there.

(21 Jan '13, 23:16) anton_lunyov ♦6★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,070
×21

question asked: 21 Jan '13, 17:56

question was seen: 826 times

last updated: 22 Jan '13, 02:40