You are viewing a single comment's thread. Return to all comments →
My Python solution: for t in range(int(input())): beg,end=map(int,input().split()) print(int(end**0.5)-int((beg-1)**0.5))
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 →
My Python solution: for t in range(int(input())): beg,end=map(int,input().split()) print(int(end**0.5)-int((beg-1)**0.5))