bknarendra's blog

By bknarendra, 13 years ago, In English

This contest (#91) seriously proved to be a nightmare.

I solved all three problems and each of them failed because of a really silly mistakes.
First one failed coz I forgot to mention a divisor 477 and 747 and my solution was hacked.
Second one again misread the statement and included a useless condition for -1 and solution failed on pretest
Third one was the silliest where I made a mistake of the constraints and counted the possible values only upto 9 digits instead of 10.
So couldn't submit even a single correct submission and ratings fell.
"Learned new lesson the hard way..."
  • Vote: I like it
  • +6
  • Vote: I do not like it

13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
Regarding 3rd problem, or in general , you must once check for highest value of input like 10^9 in this case.
13 years ago, # |
  Vote: I like it 0 Vote: I do not like it
For 3rd, I also didn't consider 10-digits at first. Gladly, pretest 8 (10^9 10^9) was there to help me out. :)
  • 13 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it
    Can u see the pretests for which your solution fails.If yes how?
    • 13 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it
      No, i saw the pretest after the contest was over. My soln, didn't pass the pretest, so I looked over my soln again and found the mistake.