-->
当前位置:首页 > 题库

PROGRAMMING:Second cargo planet

Luz5年前 (2021-05-10)题库422
A long time ago, there was a binary planet in the galaxy. People were born with super power, which is called "binary index". The level of this index determines the level of power. People on the planet live happily... Well, cut the crap. Recently, king, the binary planet with the strongest binary index, has nothing to do and is thinking about life, He wants to know at least how many people on this planet have the same energy index except for him. It is said that except for ER Huang, everyone's energy index does not exceed P. if there are n people on ER Huo planet, how many people on this planet have the same energy index?
###Input format:
There are several groups of data input. The first line of each group of data has two numbers N and P (1 < = n, P < = 1000000000). N represents the number of people and P represents the dual energy index.
###Output format:
For each set of test data, output a number indicating how many people on the planet are eligible at least.
###Input example:
Here is a set of inputs. For example:
```in
3645 20
```
###Output example:
The corresponding output is given here. For example:
```out
one hundred and eighty-three
```







answer:If there is no answer, please comment