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

Автор kira_lite, история, 6 месяцев назад, По-английски

I observed a very strange behaviour in one of the recent problems of the sqrt() function, where a negative number was passed on to sqrt() function and it worked properly in one way but not the other. I have 2 submissions- one which gives an AC while the other shows Memory out of bounds, which it should have thrown ideally.

The only difference b/w the 2 submissions is that i am having a long long value to subtract from in the AC submission, but i dont see much difference because of it. If someone can provide a brief of why its happening, it'll be a great lesson !

Thanks in advance

Полный текст и комментарии »

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