You are viewing a single comment's thread. Return to all comments →
Using Python 3..with Same Logic.
import math for _ in range(int(input())): a, b = list(map(int, input().split())) print(math.floor(math.sqrt(b)) - math.ceil(math.sqrt(a)) + 1)
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 →
Using Python 3..with Same Logic.