×

# Bad testcases in Chef and Numbers (CHEFFED)

 2 https://www.codechef.com/viewsolution/10899911 This is the link for some one's code which got AC verdict.. and this is my code https://www.codechef.com/viewsolution/10899101 which got WA verdict.. but for n = 999 999 894 there will be two numbers which could satisfy the equation.. They are 1) x = 999 999 814 , S(X) = 67, S(S(X)) = 13 2) x = 999 999 799 , S(X) = 79, S(S(X)) = 16  i.e. My code is giving count as 2 for this case.. But when i executed the same on the accepted solution, it is giving count as 0 Which is blunder.. Kindly check this case on your codes.. and comment your answers.. asked 25 Jul '16, 01:29 2★kishore1 39●3 accept rate: 0%

 6 4 numbers 999999799 999999814 999999817 999999820 answered 25 Jul '16, 01:34 3★sandeep9 478●2●8●27 accept rate: 4%
 4 i am getting 4 for my AC solution, answered 25 Jul '16, 01:38 439●14 accept rate: 16%
 2 yup getting 4 nos for my AC solution too. answered 25 Jul '16, 01:51 99●3 accept rate: 25%
 2 That's why there so many AC submissions! I hope solutions will be rejudged. By the way answer is 4. answered 25 Jul '16, 09:12 953●13 accept rate: 11%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• 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: 25 Jul '16, 01:29

question was seen: 743 times

last updated: 25 Jul '16, 09:12