Biba_Boba's blog

By Biba_Boba, history, 16 months ago, In Russian

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?

  • Vote: I like it
  • 0
  • Vote: I do not like it