divsum in O(sqrt(n))
Gardenar problem spoj using Heron's formula...double instead of int(4.0 instead of 4)