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

Автор codolove, 12 лет назад, По-английски

I was trying to apply the divide and conquer algorithm for closest pair of points on this problem. I have been getting wrong answer many times. My solution is here. I read this algorith from this site.

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

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

In 23-rd line you multiply ints up to 106. It will cause overflow. And be careful about number of digits in output.