printЗадачи очного тура личного первенства

printC. Cube Numbers

Ограничения: время – 200ms/500ms, память – 64MiB Ввод: input.txt или стандартный ввод Вывод: output.txt или стандартный вывод copy
Послать решение Blockly Посылки Темы Где Обсудить (0)

A cube number is an integer number whose cube root is also an integer. For example 1, 8, 125 are some cube numbers. Given two numbers `a` and `b` you will have to find out how many cube numbers are there between `a` and `b` (inclusive).
The input file contains at most 201 lines of inputs. Each line contains two integers `a` and `b` (`0\ <\ a\ ≤\ b\ ≤\ 10^9`). Input is terminated by a line containing two zeroes. This line should not be processed.
For each line of input produce one line of output. This line contains an integer which denotes how many cube numbers are there between `a` and `b` (inclusive).

Sample Input

1 8
5 100
0 0

Sample Output

2
3
loading