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

×

Bad testcases in Chef and Numbers (CHEFFED)

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

kishore1's gravatar image

2★kishore1
393
accept rate: 0%


4 numbers

999999799 999999814 999999817 999999820

link

answered 25 Jul '16, 01:34

sandeep9's gravatar image

3★sandeep9
4782827
accept rate: 4%

i am getting 4 for my AC solution,

link

answered 25 Jul '16, 01:38

geek_geek's gravatar image

4★geek_geek
43914
accept rate: 16%

yup getting 4 nos for my AC solution too.

link

answered 25 Jul '16, 01:51

entangledcat's gravatar image

4★entangledcat
993
accept rate: 25%

That's why there so many AC submissions! I hope solutions will be rejudged. By the way answer is 4.

link

answered 25 Jul '16, 09:12

dushsingh1995's gravatar image

4★dushsingh1995
95313
accept rate: 11%

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:

×6
×3

question asked: 25 Jul '16, 01:29

question was seen: 743 times

last updated: 25 Jul '16, 09:12