http://www.hellojava.com/a/68845.html
public int solution(int A, int B) {
int nop = 0;
A = (int)Math.ceil(Math.sqrt(A));
B = (int)Math.floor(Math.sqrt(B));
while(B >= A) {
nop++;
A = (int)Math.ceil(Math.sqrt(A));
B = (int)Math.floor(Math.sqrt(B));
}
return nop;
}
public static void main(String[] args){
System.out.println(new Solution().solution(10, 20));
}