1922: 二进制计数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Normal Judger Creator:
Submit:2 Solved:2

Description

【题目描述】

二进制数由1和0组成,现在有n个1和无数个0,请计算在[s,t]范围内所能表达数的个数。

【输入格式】

输入3个整数n,s,t(1≤n≤50,1≤s≤t≤100 000 000 000 000)。

【输出格式】

输出1个整数,即用不多于n个1的二进制数可表示在[s,t]中的数的个数。

【输入样例】

4 100 105

【输出样例】

5

 

 

Input

输入3个整数n,s,t(1≤n≤50,1≤s≤t≤100 000 000 000 000)。

Output

输出1个整数,即用不多于n个1的二进制数可表示在[s,t]中的数的个数。

Sample Input Copy

4 100 105

Sample Output Copy

5