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


Chefhack WA

My chefhack is giving wrong answer. Solution link is Admin please tell me the test case where it is going wrong.

asked 21 Jan '13, 17:56

raman92's gravatar image

accept rate: 0%

edited 21 Jan '13, 23:20

anton_lunyov's gravatar image

6★anton_lunyov ♦

Read the announcement I've added to the editorial.
Your program returns 421211088 for this test:
While the correct answer is 436746489.


answered 21 Jan '13, 23:19

anton_lunyov's gravatar image

6★anton_lunyov ♦
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.


answered 21 Jan '13, 18:31

admin's gravatar image

0★admin ♦♦
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

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 21 Jan '13, 17:56

question was seen: 826 times

last updated: 22 Jan '13, 02:40