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

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

As I was solving this problem where I have to find the min of something with ans.

In my machine it showed the correct ans where I'd defined ans = sys.maxsize

I was getting wrong answer every time. My submission

Just changed sys.maxsize to 10^18 and got AC. Link

I used this algorithm Link

I just want to ask why they are using 32 bit interpreter.

P.S. — I didn't have any personal issue with that but I came to know my fault after the contest had been finished.

Sorry for my poor english. :)

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