You are viewing a single comment's thread. Return to all comments →
def squares(a, b): if(math.sqrt(a)==int(math.sqrt(a))): a= int(math.sqrt(a)) else: a=int(math.sqrt(a))+1 if(math.sqrt(b)==int(math.sqrt(b))): b=int(math.sqrt(b))+1 else: b=int(math.sqrt(b))+1 return b-a
python 3 solution
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
python 3 solution