solver11's blog

By solver11, history, 4 years ago, In English

Hi i wrote in my previous blog that i changed the base of the number that i used as the sqrt and my solution passed and this time i i was getting a wrong answer and i just changed the base and got an accepted and i was looking for bugs in my code for quite a while but i didn't find any so can anybody explain to me why this happened??
this is the problem btw: 455D - Серега и веселье

  • Vote: I like it
  • +4
  • Vote: I do not like it

»
4 years ago, # |
Rev. 4   Vote: I like it +4 Vote: I do not like it

if you're wondering why this happened as i am this is the submission 70555344 thanks if you take the time and try to debug it :)

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Your solution can't even read first sample if you change your SQRT constant to 1, but your sqrt structure should know how to work with any constant. Maybe that fact may help you.

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +3 Vote: I do not like it

      well i just checked and it do work in this case

»
4 years ago, # |
  Vote: I like it +3 Vote: I do not like it

I think you just got lucky XD