| Cataratas do Pinhão 2025 |
|---|
| Закончено |
Nikolas was intrigued by the name of Unioeste: State University of Western Paraná. According to his reasoning, why specify that the university is in the "West" (oeste in Portuguese) of Paraná, if there is no State University of "Eastern" (leste in Portuguese) Paraná? To correct this geographical injustice, he decided to found Unilestep (State University of Eastern Paraná).
However, the master plan for cities in the east includes some rules that must be followed:
For example, for $$$L = 2$$$ and $$$R = 5$$$:
To help Nikolas choose the ideal plot of land to build Unilestep, write a program that, given the values of $$$L$$$ and $$$R$$$, reports how many distinct plots of land he can use. A plot of land is considered distinct from another only if its area is different.
The first line of the input contains the integer $$$T$$$ $$$(1 \leq T \leq 10^{3})$$$, the number of test cases. This is followed by $$$T$$$ lines, each line being a test case containing two integers $$$L$$$ and $$$R$$$ ($$$1 \leq L \leq R \leq 17$$$).
For each test case, your program should output a line containing an integer: the number of different plots of land that Nikolas can use, given the values of $$$L$$$ and $$$R$$$ provided.
12 3
28
29 1210 17
990000 316196144
| Название |
|---|


