Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя solver11

Автор solver11, история, 5 лет назад, По-английски

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 - Serega and Fun

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 4   Проголосовать: нравится +4 Проголосовать: не нравится

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 :)

  • »
    »
    5 лет назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    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.

»
5 лет назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

I think you just got lucky XD