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

Автор Biba_Boba, история, 16 месяцев назад, По-русски

Please help with this spoj problem https://www.spoj.com/problems/CIRCLE_M/. I know that it can be solved using binary search, but numbers are very big, so I can't just use float. My python code gives TL — https://ideone.com/HGljSq. It seems that decimal library takes too much time, so does anyone know how to make it faster?

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